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

Enable/Disable threads on specific programs #314

Open
Lusitaniae opened this issue Aug 23, 2024 · 1 comment
Open

Enable/Disable threads on specific programs #314

Lusitaniae opened this issue Aug 23, 2024 · 1 comment

Comments

@Lusitaniae
Copy link

Since threads adds a lot of overhead and cardinality to metrics, would be interesting if we could restrict threads to one of the multiple process monitored by process exporter

@Lusitaniae
Copy link
Author

Lusitaniae commented Aug 26, 2024

For now doing that on prometheus / scraping side by using metrics relabel

so as to only keep thread metrics for my app1/app2, nothing else

    metric_relabel_configs:
      - action: keep
        source_labels: [__name__, groupname]
        regex: namedprocess_namegroup_thread_.*;(app1|app2).*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant