add prometheus configuration examples
This commit is contained in:
parent
f606e70250
commit
b725100d9c
21
contrib/prometheus/prometheus.conf
Normal file
21
contrib/prometheus/prometheus.conf
Normal 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
|
5
contrib/prometheus/router7.rules.yml
Normal file
5
contrib/prometheus/router7.rules.yml
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user