Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export only desired metrics #21

Open
surbhig213 opened this issue May 13, 2021 · 5 comments
Open

Export only desired metrics #21

surbhig213 opened this issue May 13, 2021 · 5 comments

Comments

@surbhig213
Copy link

Hey @Envek ,

Right now hitting /metrics displays all the default metrics. How can I restrict it to display only those metrics which I need?

@Envek
Copy link
Member

Envek commented May 13, 2021

Right now it is not possible to suppress export of some arbitrary metrics. All netrics collected in code running inside Sidekiq worker process, will be collected and exposed by yabeda-prometheus on /metrics endpoint of this process.

Can you please clarify, what are these “default” metrics you are talking about?

If you don't want to collect some of your custom metrics, you can place them inside unless ::Sidekiq.server? block.

@surbhig213
Copy link
Author

Hey @Envek , by default metrics I mean all the 'Local per-process metrics' and 'Global cluster-wide metrics' defined in the Readme file. My question is how can I export just a few of them and not all of them.

@Envek
Copy link
Member

Envek commented May 14, 2021

No, there is no way to do that currently. You can only disable the whole “Global cluster-wide metrics” group with collect_cluster_metrics setting.

But why do you need that? I still can't get the use case.

@Envek Envek transferred this issue from yabeda-rb/yabeda-sidekiq May 14, 2021
@Envek
Copy link
Member

Envek commented May 14, 2021

Transferred this issue to main yabeda repo as it's should be fixed there. Most probably we would like to support this metrics filtering in future.

@surbhig213
Copy link
Author

No, there is no way to do that currently. You can only disable the whole “Global cluster-wide metrics” group with collect_cluster_metrics setting.

But why do you need that? I still can't get the use case.

Thanks @Envek ,
My use case is that I have to export a limited number of metrics to wavefront as we have a limit on the number of metrics to be sent. So, I was just trying if I could limit it from here itself somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants