Add observer, prometheus and grafana

This commit is contained in:
2026-04-24 18:20:48 +03:00
parent dad178bd0d
commit e57a2b9768
13 changed files with 1793 additions and 25 deletions

View File

@@ -0,0 +1,22 @@
global:
scrape_interval: 5s
scrape_configs:
- job_name: 'eventhub-node1'
static_configs:
- targets: ['eventhub-node1:8080'] # http://localhost:8080/metrics/default
labels:
node: 'node1'
metrics_path: '/metrics/default'
- job_name: 'eventhub-node2'
static_configs:
- targets: ['eventhub-node2:8080']
labels:
node: 'node2'
metrics_path: '/metrics/default'
- job_name: 'eventhub-node3'
static_configs:
- targets: ['eventhub-node3:8080']
labels:
node: 'node3'
metrics_path: '/metrics/default'