Skip to content

chore: upgrade prometheus client to 1.8.0 - #1824

Open
olovy wants to merge 1 commit into
developfrom
chore/upgrade-prometheus-2
Open

chore: upgrade prometheus client to 1.8.0#1824
olovy wants to merge 1 commit into
developfrom
chore/upgrade-prometheus-2

Conversation

@olovy

@olovy olovy commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Upgrade prometheus client from 0.15.0 to 1.8.0.

  • _total is now a reserved prefix for counter names and cannot be used by Gauge. The following metric names have been changed
    • api_ongoing_requests_total --> api_ongoing_requests
    • oaipmh_ongoing_requests_total --> oaipmh_ongoing_requests
    • marc_export_api_ongoing_requests_total --> marc_export_api_ongoing_requests
  • startTimer() now returns an auto-closable Timer. No more observeDuration()
  • resilience4j, HikariCP and guava cache metrics are stuck on on prometheus simpleclient 0.x. They are bridged to 1.x using prometheus-metrics-simpleclient-bridge

class NotificationListener extends Thread {
private static final String NAME = 'pg_listener'
private static final Counter counter = Counter.build()
private static final Counter counter = (Counter) Counter.builder()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This cast shouldn't be necessary but somehow the Groovy compiler fails here otherwise?

Same for CounterDataPoint below

@olovy olovy changed the title Upgrade prometheus client to 1.8.0 chore: upgrade prometheus client to 1.8.0 Aug 10, 2026
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.

1 participant