10000 Add OpenMetrics compatible endpoint by jcpunk · Pull Request #504 · tinyproxy/tinyproxy · GitHub
[go: up one dir, main page]

Skip to content

Add OpenMetrics compatible endpoint #504

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add OpenMetrics compatible endpoint
Signed-off-by: Pat Riehecky <riehecky@fnal.gov>
  • Loading branch information
jcpunk committed Jul 25, 2023
commit 749e12faa0bb2695b2c03ad4d3a140d9bc6919ea
1 change: 1 addition & 0 deletions data/templates/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ templatesdir = $(pkgdatadir)
TEMPLATES = \
debug.html \
default.html \
metrics \
stats.html

templates_DATA = \
Expand Down
19 changes: 19 additions & 0 deletions data/templates/metrics
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# HELP opens Number of open connections.
# TYPE opens Gauge
opens {opens}
# HELP reqs Number of requests.
# TYPE reqs Counter
reqs {reqs}
# HELP badconns Number of bad connections.
# TYPE badconns Counter
badconns {badconns}
# HELP deniedconns Number of denied connections.
# TYPE deniedconns Counter
deniedconns {deniedconns}
# HELP refusedconns Number of refused connections due to high load.
# TYPE refusedconns Counter
refusedconns {refusedconns}
# HELP binary_info Information about the binary
# TYPE binary Info
binary_info{name="{package}",version="{version}"} 1
# EOF
0