summaryrefslogtreecommitdiff
path: root/src/lib/metrics/prometheus.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-05-06 10:54:50 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-05-12 11:58:25 -0400
commitcc2947c0070faac0805478381f13956bb2775621 (patch)
tree9bc78a02b3684f5def69e2d4e8bd14349ce526f1 /src/lib/metrics/prometheus.h
parent0a915d9171ec8fbf7105242c177e3278c977f0c1 (diff)
downloadtor-cc2947c0070faac0805478381f13956bb2775621.tar.gz
tor-cc2947c0070faac0805478381f13956bb2775621.zip
metrics: Print once the Promtheus comments
An entry can have multiple labels but only print once the comments at the first one. This follows the Promtheus best practices. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/lib/metrics/prometheus.h')
-rw-r--r--src/lib/metrics/prometheus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/metrics/prometheus.h b/src/lib/metrics/prometheus.h
index 19770e7911..faa7681daa 100644
--- a/src/lib/metrics/prometheus.h
+++ b/src/lib/metrics/prometheus.h
@@ -13,6 +13,6 @@
#include "lib/metrics/metrics_store_entry.h"
void prometheus_format_store_entry(const metrics_store_entry_t *entry,
- buf_t *data);
+ buf_t *data, bool no_comment);
#endif /* !defined(TOR_LIB_METRICS_PROMETHEUS_H) */