8000 Add OpenMetrics compatible endpoint · tinyproxy/tinyproxy@10683c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10683c3

Browse files
committed
Add OpenMetrics compatible endpoint
Signed-off-by: Pat Riehecky <riehecky@fnal.gov>
1 parent 2935519 commit 10683c3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

data/templates/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ templatesdir = $(pkgdatadir)
33
TEMPLATES = \
44
debug.html \
55
default.html \
6+
metrics \
67
stats.html
78

89
templates_DATA = \

data/templates/metrics

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# HELP opens Number of open connections.
2+
# TYPE opens Gauge
3+
opens {opens}
4+
# HELP reqs Number of requests.
5+
# TYPE reqs Counter
6+
reqs {reqs}
7+
# HELP badconns Number of bad connections.
8+
# TYPE badconns Counter
9+
badconns {badconns}
10+
# HELP deniedconns Number of denied connections.
11+
# TYPE deniedconns Counter
12+
deniedconns {deniedconns}
13+
# HELP refusedconns Number of refused connections due to high load.
14+
# TYPE refusedconns Counter
15+
refusedconns {refusedconns}
16+
# HELP binary_info Information about the binary
17+
# TYPE binary Info
18+
binary_info{name="{package}",version="{version}"} 1

0 commit comments

Comments
 (0)
0