Skip to content

Conversation

d-ulyanov
Copy link
Contributor

@d-ulyanov d-ulyanov commented Jul 26, 2019

If exporter is scraped by multiple Prometheuses (as we do) - Collect() could be called concurrently. In result in some cases one of Prometheuses could get pg_up = 0, because it was explicitly set to zero on first Collect call.

Copy link
Contributor Author

@d-ulyanov d-ulyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, everything is fixed

@coveralls
Copy link

Coverage Status

Coverage increased (+0.9%) to 59.85% when pulling de68444 on d-ulyanov:concurrency-improvements into 5f3a711 on wrouesnel:master.

@coveralls
Copy link

coveralls commented Jul 26, 2019

Coverage Status

Coverage increased (+0.9%) to 59.091% when pulling 9aeff83 on d-ulyanov:concurrency-improvements into 1ab8d2b on wrouesnel:master.

@d-ulyanov
Copy link
Contributor Author

@wrouesnel pls take a look for this issue

@wrouesnel wrouesnel merged commit 238f5c0 into prometheus-community:master Aug 12, 2019
ritbl referenced this pull request in heniek/postgres_exporter Mar 19, 2023
…ting (percona#291) If exporter is scraped by multiple Prometheuses (as we do) - Collect() could be called concurrently. In result in some cases one of Prometheuses could get pg_up = 0, because it was explicitly set to zero on first Collect call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants