From cc2947c0070faac0805478381f13956bb2775621 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 6 May 2021 10:54:50 -0400 Subject: 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 --- src/lib/metrics/prometheus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/metrics/prometheus.h') 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) */ -- cgit v1.2.3-54-g00ecf