Skip to content

Add metrics for prometheus observability - #661

Merged
daniel-heppner-ibigroup merged 9 commits into
devfrom
metrics-endpoint
Aug 13, 2026
Merged

Add metrics for prometheus observability#661
daniel-heppner-ibigroup merged 9 commits into
devfrom
metrics-endpoint

Conversation

@daniel-heppner-ibigroup

@daniel-heppner-ibigroup daniel-heppner-ibigroup commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing
  • The description lists all relevant PRs included in this release (remove this if not merging to master)
  • e2e tests are all passing (remove this if not merging to master)

Description

I'm adding a /metrics endpoint and tracking a bunch of metrics with micrometer gauges and counters. We also get a bunch of JVM stats built in from micrometer.

note it's unauthenticated, so users will need to make sure to filter that url in their reverse proxy if they feel like the data contained is sensitive.

example of metrics here: https://gist.github.com/daniel-heppner-ibigroup/3efda5ac5238337727af09009d84b9a1

@daniel-heppner-ibigroup

Copy link
Copy Markdown
Contributor Author

do we have a formatter?

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Haven't had a chance to test it yet, but looks solid

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Working great! I adore it

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please move secrets from server.yml to env.yml.

Comment thread src/main/java/com/conveyal/datatools/common/utils/Scheduler.java Outdated
Comment thread src/main/java/com/conveyal/datatools/common/utils/Scheduler.java Outdated
Comment thread configurations/default/server.yml.tmp Outdated

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, looking forward to use metrics

@daniel-heppner-ibigroup
daniel-heppner-ibigroup merged commit de94e33 into dev Aug 13, 2026
6 checks passed
@daniel-heppner-ibigroup
daniel-heppner-ibigroup deleted the metrics-endpoint branch August 13, 2026 18:47
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.

4 participants