diff options
author | Christopher Baines <mail@cbaines.net> | 2020-08-31 14:43:01 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-08-31 14:43:01 +0100 |
commit | 3df4221c477bd8e6955480a0e5fc0c37a96133c7 (patch) | |
tree | ef881839028d066c4610e7269362be18148756a3 | |
parent | 5acbc44d2d6c89fd984ef2353f81f73d4e227a33 (diff) | |
download | prometheus-3df4221c477bd8e6955480a0e5fc0c37a96133c7.tar prometheus-3df4221c477bd8e6955480a0e5fc0c37a96133c7.tar.gz |
Automatically add a _ after the namespace
If one is specified. I think this is a more reasonable default
behaviour.
-rw-r--r-- | prometheus.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/prometheus.scm b/prometheus.scm index 8d6a37f..6c45ad3 100644 --- a/prometheus.scm +++ b/prometheus.scm @@ -282,7 +282,9 @@ (simple-format port "~A~A~A ~A\n" - (or (metrics-registry-namespace registry) + (or (and=> (metrics-registry-namespace registry) + (lambda (namespace) + (string-append namespace "_"))) "") name (if (null? label-values) |