-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add pigeon metrics to telemetry endpoint (#1287)
# Related Github tickets - Closes VolumeFi#2046 # 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 - [x] tested in a private testnet # Breaking changes - [x] I have checked my code for breaking changes - [x] If there are breaking changes, there is a supporting migration.
- Loading branch information
Showing
4 changed files
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters