forked from dmachard/DNS-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuse-case-2.yml
29 lines (26 loc) · 987 Bytes
/
use-case-2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This configuration sets up DNS traffic monitoring through DNStap on port 6000,
# and computes Prometheus metrics for analysis.
#
# As prerequisites, we assume you have
# - a DNS server which supports DNSTap (unbound, bind, powerdns, etc) for more informations about dnstap,
# read the following page: https://dmachard.github.io/posts/0001-dnstap-testing/
# - a Prometheus instance ready to scrap on tcp/8080
# - Basic or advanced dashboards are deployed on Grafana: doc/dashboards.md
# If turned on, debug messages are printed in the standard output
global:
trace:
verbose: true
pipelines:
# Listen on tcp/6000 for incoming DNSTap protobuf messages from dns servers
- name: tap
dnstap:
listen-ip: 0.0.0.0
listen-port: 6000
# Routes DNS messages from the tap collector to the prometheus logger
routing-policy:
forward: [ prom ]
# Exposes prometheus metrics
- name: prom
prometheus:
listen-ip: 0.0.0.0
listen-port: 8080