-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.yml
33 lines (31 loc) · 1.03 KB
/
prometheus.yml
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
# Global configuration settings for Prometheus
global:
# Set the interval at which Prometheus scrapes targets (15 seconds)
scrape_interval: 15s
# Set the timeout for individual scrape requests (10 seconds)
scrape_timeout: 10s
# Set the interval at which rules are evaluated (15 seconds)
evaluation_interval: 15s
# Alerting configuration for Prometheus
alerting:
alertmanagers:
# Configure Alertmanager with HTTP settings
- follow_redirects: true
enable_http2: true
scheme: http
timeout: 10s
api_version: v2
# Configure static targets for Alertmanager
static_configs:
- targets: []
# Scrape configurations for Prometheus, defining jobs and their settings
scrape_configs:
# Job configuration for 'fastapi'
- job_name: 'fastapi'
# Set the interval at which Prometheus scrapes targets for this job (10 seconds)
scrape_interval: 10s
# Set the metrics path for this job
metrics_path: /metrics
# Define static targets for this job
static_configs:
- targets: ['backend-app:8000']