From da5a8997d3989bb1ae635a4fb05a50f3f9ab24cf Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Tue, 16 Dec 2025 12:14:25 +0000 Subject: [PATCH] Add Prometheus configuration --- monitoring/prometheus/prometheus.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 monitoring/prometheus/prometheus.yml diff --git a/monitoring/prometheus/prometheus.yml b/monitoring/prometheus/prometheus.yml new file mode 100644 index 0000000..ef7ae25 --- /dev/null +++ b/monitoring/prometheus/prometheus.yml @@ -0,0 +1,36 @@ +# Prometheus configuration for EVPN-VXLAN fabric monitoring + +global: + scrape_interval: 15s + evaluation_interval: 15s + external_labels: + monitor: 'evpn-fabric-monitor' + +# Alertmanager configuration (optional) +# alerting: +# alertmanagers: +# - static_configs: +# - targets: +# - alertmanager:9093 + +# Load rules once and periodically evaluate them +# rule_files: +# - "alerts/*.yml" + +scrape_configs: + # Scrape Prometheus itself + - job_name: 'prometheus' + static_configs: + - targets: ['localhost:9090'] + + # Scrape gnmic for network telemetry + - job_name: 'gnmic' + scrape_interval: 10s + scrape_timeout: 10s + static_configs: + - targets: ['gnmic:9804'] + metric_relabel_configs: + # Keep only relevant metrics to reduce storage + - source_labels: [__name__] + regex: 'gnmic_(interfaces|bgp|mlag|vxlan|system).*' + action: keep