forked from Lumen-Scribe/Lumenqraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml
More file actions
41 lines (36 loc) · 984 Bytes
/
Copy pathprometheus.yml
File metadata and controls
41 lines (36 loc) · 984 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
36
37
38
39
40
41
global:
scrape_interval: 30s
evaluation_interval: 30s
external_labels:
cluster: 'production'
environment: 'production'
alerting:
alertmanagers:
- static_configs:
- targets: []
# Uncomment and configure AlertManager targets:
# - 'alertmanager:9093'
rule_files:
- 'prometheus_alerts.yml'
scrape_configs:
# Lumenqraph API metrics endpoint
- job_name: 'lumenqraph-api'
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: '/metrics'
static_configs:
- targets: ['localhost:8080']
labels:
instance: 'lumenqraph-api'
service: 'lumenqraph'
# Prometheus self-monitoring
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
labels:
instance: 'prometheus'
service: 'prometheus'
# Optional: Add Alertmanager scraping if deployed
# - job_name: 'alertmanager'
# static_configs:
# - targets: ['alertmanager:9093']