forked from matanbaruch/netbird-api-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml.example
More file actions
35 lines (30 loc) · 877 Bytes
/
Copy pathprometheus.yml.example
File metadata and controls
35 lines (30 loc) · 877 Bytes
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
30
31
32
33
34
35
# Example Prometheus configuration for NetBird API Exporter
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
# "first_rules.yml"
# "second_rules.yml"
scrape_configs:
# Default Prometheus scrape config
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
# NetBird API Exporter
- job_name: 'netbird-api-exporter'
static_configs:
- targets: ['localhost:8080']
scrape_interval: 30s
metrics_path: /metrics
honor_labels: true
scrape_timeout: 10s
# Optional: Add labels to identify this NetBird instance
relabel_configs:
- target_label: 'netbird_instance'
replacement: 'production' # Change this to match your environment
# Example alerting rules (optional)
# alerting:
# alertmanagers:
# - static_configs:
# - targets:
# # - alertmanager:9093