forked from Pulsefy/Lumenpulse
-
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.26 KB
/
Copy pathprometheus.yml
File metadata and controls
47 lines (40 loc) · 1.26 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.yml
# Example Prometheus configuration for scraping LumenPulse backend metrics
#
# Place this file in the root directory of the project
# Usage: docker-compose -f docker-compose.monitoring.yml up -d
global:
scrape_interval: 15s # How often to scrape targets by default
scrape_timeout: 10s # How long until a scrape request times out
evaluation_interval: 15s # How often to evaluate rules
external_labels:
cluster: 'lumenpulse-dev'
environment: 'development'
# Alert configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - 'alertmanager:9093'
# Rule files
rule_files:
- './prometheus-rules.yml'
scrape_configs:
# LumenPulse Backend Metrics
- job_name: 'lumenpulse-backend'
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: '/metrics'
# Service discovery using docker-compose service name
static_configs:
- targets: ['backend:3000']
# Relabel to add additional labels
relabel_configs:
- source_labels: [__address__]
target_label: instance
- source_labels: [__scheme__]
target_label: scheme
# Prometheus self-monitoring
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']