-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml
More file actions
47 lines (40 loc) · 1.23 KB
/
prometheus.yml
File metadata and controls
47 lines (40 loc) · 1.23 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
# Prometheus Configuration for BitSage Consensus Monitoring
#
# This configuration scrapes metrics from the BitSage coordinator's
# /metrics endpoint to monitor consensus operations.
global:
scrape_interval: 15s # Scrape metrics every 15 seconds
evaluation_interval: 15s # Evaluate rules every 15 seconds
external_labels:
cluster: 'bitsage-sepolia'
environment: 'testnet'
# Alertmanager configuration (optional)
alerting:
alertmanagers:
- static_configs:
- targets:
# - 'alertmanager:9093' # Uncomment if you have Alertmanager
# Load rules for alerting
rule_files:
- 'alerts.yml'
# Scrape configurations
scrape_configs:
# BitSage Coordinator Metrics
- job_name: 'bitsage-coordinator'
static_configs:
- targets: ['localhost:3000'] # Adjust to your coordinator port
metrics_path: '/metrics'
scrape_interval: 10s
# Additional coordinators (for multi-node setup)
- job_name: 'bitsage-coordinators'
static_configs:
- targets:
- 'coordinator-1:3000'
- 'coordinator-2:3000'
- 'coordinator-3:3000'
labels:
service: 'bitsage-coordinator'
# Prometheus self-monitoring
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']