add prometheus configuration examples

This commit is contained in:
Michael Stapelberg 2018-10-10 16:49:45 +02:00
parent f606e70250
commit b725100d9c
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,21 @@
- job_name: rtr7_dnsd
scrape_interval: 5s
scheme: http
static_configs:
- targets:
- 'router7:8053'
- job_name: rtr7_netconfigd
scheme: http
scrape_interval: 5s
static_configs:
- targets:
- 'router7:8066'
- job_name: timestamps
scheme: http
static_configs:
- targets:
- 'router7:1341'
labels:
host: router7

View File

@ -0,0 +1,5 @@
groups:
- name: router7.rules.yml
rules:
- record: family:nftables_filter_forward_bytes:rate10s_sum
expr: sum(rate(nftables_filter_forward_bytes[10s])) BY (family)