diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am index e4b0134..7cd6e97 100644 --- a/data/templates/Makefile.am +++ b/data/templates/Makefile.am @@ -3,7 +3,8 @@ templatesdir = $(pkgdatadir) TEMPLATES = \ debug.html \ default.html \ - stats.html + stats.html \ + prometheus.txt templates_DATA = \ $(TEMPLATES) diff --git a/data/templates/prometheus.txt b/data/templates/prometheus.txt new file mode 100644 index 0000000..6988adf --- /dev/null +++ b/data/templates/prometheus.txt @@ -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}