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

Suggest adding functions to exclude some metrics #1031

Open
rus-99-pk opened this issue May 13, 2024 · 2 comments
Open

Suggest adding functions to exclude some metrics #1031

rus-99-pk opened this issue May 13, 2024 · 2 comments

Comments

@rus-99-pk
Copy link

Hello!

Proposal

I suggest adding functions to exclude some metrics in postgres_exporter.

Because I have a large number of sessions and queries in the database, so this number is showed in the form of metrics. Due to the large number of metrics, the third-party application that receives these metrics freezes.

To avoid this, it is necessary to disable a number of metrics, for example pg_stat_activity_count.

I think it will be useful, because i didn't find this in standart functionality.

@SuperQ
Copy link
Contributor

SuperQ commented May 13, 2024

This comes from the old builtinMetricMaps in cmd/postgres_exporter/postgres_exporter.go. This is on the TODO list to be migrated to the collector package. This will enable it to be

Due to the large number of metrics, the third-party application that receives these metrics freezes.

This sounds like a bug, Prometheus should not "freeze" when ingesting data. There are also scrape sample limits in the configuration to help avoid problems like this.

@rus-99-pk
Copy link
Author

rus-99-pk commented May 15, 2024

@SuperQ, thank you!

This sounds like a bug, Prometheus should not "freeze" when ingesting data. There are also scrape sample limits in the configuration to help avoid problems like this.

Yes, Prometheus doesn't freeze. I talked about my third-party application, that receives these metrics from Prometheus.

This comes from the old builtinMetricMaps in cmd/postgres_exporter/postgres_exporter.go. This is on the TODO list to be migrated to the collector package. This will enable it to be

I understand correctly, that it will realized in the future, or not? If is it right, than when will it happen?

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