diff --git a/contrib/prometheus/prometheus.conf b/contrib/prometheus/prometheus.conf new file mode 100644 index 0000000..2d7f74c --- /dev/null +++ b/contrib/prometheus/prometheus.conf @@ -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 diff --git a/contrib/prometheus/router7.rules.yml b/contrib/prometheus/router7.rules.yml new file mode 100644 index 0000000..ab15dad --- /dev/null +++ b/contrib/prometheus/router7.rules.yml @@ -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)