-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus.yml.template
More file actions
36 lines (30 loc) · 923 Bytes
/
prometheus.yml.template
File metadata and controls
36 lines (30 loc) · 923 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
global:
scrape_interval: 1s # Как часто собирать метрики
evaluation_interval: 1s # Как часто вычислять правила агрегации и алертинга
rule_files:
- "alerts.yml"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: [ "localhost:9090" ]
- job_name: "auth_server"
scheme: ${APP_METRICS_SCHEME}
tls_config:
insecure_skip_verify: true
static_configs:
- targets: [ "${AUTH_METRICS_TARGET}" ]
labels:
service: "auth"
env: "dev"
- job_name: "chat_server"
scheme: ${APP_METRICS_SCHEME}
tls_config:
insecure_skip_verify: true
static_configs:
- targets: [ "${CHAT_METRICS_TARGET}" ]
labels:
service: "chat"
env: "dev"
- job_name: 'postgres'
static_configs:
- targets: [ 'postgresql_exporter:9187' ]