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

Cleanup exporter metrics #33

Merged
merged 1 commit into from
Jul 8, 2020
Merged

Cleanup exporter metrics #33

merged 1 commit into from
Jul 8, 2020

Conversation

SuperQ
Copy link
Contributor

@SuperQ SuperQ commented Jul 6, 2020

  • Remove scrape counter, covered by promhttp metrics.
  • Combine up and error metrics to simplify use.
  • Remove scrape duration counter, covered by scrape_duration_seconds.
  • Use Const metric for up metric.

Signed-off-by: Ben Kochie [email protected]

@SuperQ SuperQ requested review from stanhu and brian-brazil July 6, 2020 13:20
@SuperQ
Copy link
Contributor Author

SuperQ commented Jul 6, 2020

First round of cleanup based on feedback.

@SuperQ SuperQ force-pushed the bjk/cleanup branch 2 times, most recently from 45b0cbf to 276db73 Compare July 6, 2020 13:26
* Remove scrape counter, covered by promhttp metrics.
* Combine up and error metrics to simplify use.
* Remove scrape duration counter, covered by `scrape_duration_seconds`.
* Use Const metric for `up` metric.
* Remove unecessary mutex.

Signed-off-by: Ben Kochie <[email protected]>
@brian-brazil
Copy link

👍

I think you might be better off failing the scrape on an error, which makes it easier for users.

@SuperQ SuperQ merged commit 41ae60b into master Jul 8, 2020
@SuperQ SuperQ deleted the bjk/cleanup branch July 8, 2020 11:08
@SuperQ
Copy link
Contributor Author

SuperQ commented Jul 8, 2020

For now, I think we want to maintain partial results on pgbouncer issues.

SuperQ added a commit that referenced this pull request Jul 8, 2020
Counter names have been updated to match Prometheus naming conventions.
* `pgbouncer_stats_queries_duration_seconds` -> `pgbouncer_stats_queries_duration_seconds_total`
* `pgbouncer_stats_client_wait_seconds` -> `pgbouncer_stats_client_wait_seconds_total`
* `pgbouncer_stats_server_in_transaction_seconds` -> `pgbouncer_stats_server_in_transaction_seconds_total`

* [CHANGE] Cleanup exporter metrics #33
* [CHANGE] Update counter metric names #35
* [FEATURE] Add support for SHOW LISTS metrics #36

Other:
* Update vendoring.
* Update Prometheus build orb.

Signed-off-by: Ben Kochie <[email protected]>
@SuperQ SuperQ mentioned this pull request Jul 8, 2020
uncleDecart pushed a commit to uncleDecart/pgbouncer_exporter that referenced this pull request Aug 23, 2020
Counter names have been updated to match Prometheus naming conventions.
* `pgbouncer_stats_queries_duration_seconds` -> `pgbouncer_stats_queries_duration_seconds_total`
* `pgbouncer_stats_client_wait_seconds` -> `pgbouncer_stats_client_wait_seconds_total`
* `pgbouncer_stats_server_in_transaction_seconds` -> `pgbouncer_stats_server_in_transaction_seconds_total`

* [CHANGE] Cleanup exporter metrics prometheus-community#33
* [CHANGE] Update counter metric names prometheus-community#35
* [FEATURE] Add support for SHOW LISTS metrics prometheus-community#36

Other:
* Update vendoring.
* Update Prometheus build orb.

Signed-off-by: Ben Kochie <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants