From f2f051262542a37306e07ea289a5370ae503e459 Mon Sep 17 00:00:00 2001 From: Nico Holguin Date: Thu, 10 Dec 2020 16:10:40 -0700 Subject: [PATCH] add prometheus exporter template --- data/templates/Makefile.am | 3 ++- data/templates/prometheus.html | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 data/templates/prometheus.html diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am index e4b0134..a6967a9 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.html templates_DATA = \ $(TEMPLATES) diff --git a/data/templates/prometheus.html b/data/templates/prometheus.html new file mode 100644 index 0000000..6988adf --- /dev/null +++ b/data/templates/prometheus.html @@ -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}