API: add support for Prometheus text format on stats API endpoint#1127
Merged
josecelano merged 1 commit intotorrust:developfrom Dec 11, 2024
Conversation
…API endpoint http://127.0.0.1:1212/api/v1/stats?token=MyAccessToken&format=prometheus ```text torrents 0 seeders 0 completed 0 leechers 0 tcp4_connections_handled 0 tcp4_announces_handled 0 tcp4_scrapes_handled 0 tcp6_connections_handled 0 tcp6_announces_handled 0 tcp6_scrapes_handled 0 udp4_connections_handled 0 udp4_announces_handled 0 udp4_scrapes_handled 0 udp4_errors_handled 0 udp6_connections_handled 0 udp6_announces_handled 0 udp6_scrapes_handled 0 udp6_errors_handled 0 ```
ff0fafc to
52d3505
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1127 +/- ##
===========================================
- Coverage 76.21% 75.65% -0.56%
===========================================
Files 173 173
Lines 11347 11425 +78
Branches 11347 11425 +78
===========================================
- Hits 8648 8644 -4
- Misses 2502 2581 +79
- Partials 197 200 +3 ☔ View full report in Codecov by Sentry. |
Member
Author
|
ACK 52d3505 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It adds support for Prometheus text format on the
statsAPI endpoint:http://127.0.0.1:1212/api/v1/stats?token=MyAccessToken&format=prometheus
Needed to implement this: torrust/torrust-demo#20