Skip to content

Commit

Permalink
Updated doc for Prometheus logger to reflect flexible labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
kabenin committed Aug 24, 2023
1 parent 00aaf4a commit 559ea02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/logger_prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -37,6 +38,7 @@ prometheus:
top-n: 10
chan-buffer-size: 65535
histogram-metrics-enabled: false
prometheus-labels: ["stream_id"]
```
Scrape metric with curl:
Expand Down Expand Up @@ -94,4 +96,3 @@ The following [build-in](https://grafana.com/grafana/dashboards/16630) dashboard
<p align="center">
<img src="dashboard_prometheus.png" alt="dnscollector"/>
</p>

0 comments on commit 559ea02

Please sign in to comment.