-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprometheus.yml
More file actions
32 lines (27 loc) · 814 Bytes
/
prometheus.yml
File metadata and controls
32 lines (27 loc) · 814 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
# Prometheus Configuration for API Security Scanner
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
alerting:
alertmanagers:
- static_configs:
- targets:
# - "alertmanager:9093"
scrape_configs:
# API Security Scanner metrics
- job_name: 'api-security-scanner'
static_configs:
- targets: ['localhost:8090'] # This works for bare-metal deployments
metrics_path: '/metrics'
scrape_interval: 30s
scrape_timeout: 10s
# API Security Scanner metrics (Docker service name)
- job_name: 'api-security-scanner-docker'
static_configs:
- targets: ['api-security-scanner:8090'] # For Docker Compose setup
metrics_path: '/metrics'
scrape_interval: 30s
scrape_timeout: 10s