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

feat: add pigeon metrics to telemetry endpoint #1287

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

maharifu
Copy link
Contributor

@maharifu maharifu commented Sep 6, 2024

Related Github tickets

Background

This PR adds pigeon metrics to the telemetry endpoint, where they can be consumed in either JSON or prometheus format.

To get the metrics, we need to enable telemetry on app.toml - telemetry.enabled = true. If we want to enable the prometheus format, we need to enable prometheus sink as well, by setting prometheus retention to non-zero, e.g. telemetry.prometheus-retention-time = 60 to retain metrics for a minute.
Metrics will be available on the API, in the /metrics endpoint, e.g. http://localhost:1317/metrics?format=prometheus
Pigeon metrics keys are prefixed with pigeon_.

Testing completed

  • test coverage exists or has been added/updated
  • tested in a private testnet

Breaking changes

  • I have checked my code for breaking changes
  • If there are breaking changes, there is a supporting migration.

@taariq taariq merged commit 1f93b67 into palomachain:master Sep 9, 2024
4 checks passed
@taariq taariq deleted the feat/add_pigeon_metrics branch September 9, 2024 07:05
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.

[TRACKING TICKET]: node exporter metrics
3 participants