aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-11-29 08:54:15 +0000
committerChristopher Baines <mail@cbaines.net>2020-11-29 08:54:15 +0000
commit81d8dda11862b9c2243cc88f21cce89e2e2ec840 (patch)
treefc8ae48f884f585d867d54ada3878d8cbecab5c0
parent826704723a04accc95c2a5a91b0254851d5cf7d0 (diff)
downloadprometheus-81d8dda11862b9c2243cc88f21cce89e2e2ec840.tar
prometheus-81d8dda11862b9c2243cc88f21cce89e2e2ec840.tar.gz
Write out the metric type
-rw-r--r--prometheus.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/prometheus.scm b/prometheus.scm
index d6889e1..68336cf 100644
--- a/prometheus.scm
+++ b/prometheus.scm
@@ -383,6 +383,9 @@ so that it can receive and store the metric values."
full-name
docstring)))
+ (simple-format port "# TYPE ~A ~A\n"
+ full-name (metric-type metric))
+
(hash-for-each
(lambda (label-values value)
(simple-format