From 559ea02c2714959c76f98db7a1179205c07bdf10 Mon Sep 17 00:00:00 2001 From: Alexander Kabenin <28066869+kabenin@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:44:58 -0700 Subject: [PATCH] Updated doc for Prometheus logger to reflect flexible labeling --- doc/logger_prometheus.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/logger_prometheus.md b/doc/logger_prometheus.md index b206f6fe..7c78271f 100644 --- a/doc/logger_prometheus.md +++ b/doc/logger_prometheus.md @@ -18,6 +18,7 @@ Options: - `top-n`: (string) default number of items on top - `chan-buffer-size`: (integer) channel buffer size used on incoming dns message, number of messages before to drop it. - `histogram-metrics-enabled`: (boolean) compute histogram for qnames length, latencies, queries and replies size repartition +- `prometheus-labels`: (list of strings) labels to add to metrics. Currently supported labels: `stream_id`, `resolver` Default values: @@ -37,6 +38,7 @@ prometheus: top-n: 10 chan-buffer-size: 65535 histogram-metrics-enabled: false + prometheus-labels: ["stream_id"] ``` Scrape metric with curl: @@ -94,4 +96,3 @@ The following [build-in](https://grafana.com/grafana/dashboards/16630) dashboard

dnscollector

-