add prometheus exporter template

This commit is contained in:
Nico Holguin 2020-12-10 16:10:40 -07:00
parent adad565c03
commit f2f0512625
2 changed files with 17 additions and 1 deletions

View File

@ -3,7 +3,8 @@ templatesdir = $(pkgdatadir)
TEMPLATES = \
debug.html \
default.html \
stats.html
stats.html \
prometheus.html
templates_DATA = \
$(TEMPLATES)

View File

@ -0,0 +1,15 @@
# 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}