Skip to content

Getting "collected metrics xxx was collected before with the same name and label values" #327

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

Closed
jdhanani1-zz opened this issue Nov 4, 2019 · 2 comments

Comments

@jdhanani1-zz
Copy link

I am trying to use postgres_exporter v0.7.0 (built with go1.11) with --auto-discover-databases.
I have 4 databases in the pg cluster. The prometheus started complaining with "server returned HTTP status 500 Internal Server Error"

So I looked at the metrics being scraped at the exporter end point using curl and I see bunch of messages not limited to below but for every metrics it collects.

  • collected metric pg_postmaster_start_time_seconds label:<name:"server" value:”server11:4340” > gauge:<value:956422.90218 > was collected before with the same name and label values
  • collected metric pg_wraparound_max label:<name:"server" value:”server11:4340" > untyped:<value:1.94266408e+08 > was collected before with the same name and label values

Please help identify the issue.

@jdhanani1-zz
Copy link
Author

I did use --disable-default-metrics --disable-settings-metrics --auto-discover-databases flags.

@jdhanani1-zz
Copy link
Author

Looks like duplicate of : Multi-DSN causes duplicate metric errors for built-in stat queries #296

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

1 participant