-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml
More file actions
31 lines (25 loc) · 754 Bytes
/
prometheus.yml
File metadata and controls
31 lines (25 loc) · 754 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
# Prometheus Configuration for Node API Skeleton
global:
scrape_interval: 15s # Scrape targets every 15 seconds
evaluation_interval: 15s # Evaluate rules every 15 seconds
external_labels:
monitor: "node-api-skeleton"
# Scrape configurations
scrape_configs:
# API metrics
- job_name: "api"
static_configs:
- targets: ["api:3000"]
labels:
service: "node-api-skeleton"
environment: "development"
# Scrape /metrics endpoint
metrics_path: "/metrics"
# Scrape interval for this job (overrides global)
scrape_interval: 10s
# Timeout for scraping
scrape_timeout: 5s
# Prometheus self-monitoring
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]