-
Notifications
You must be signed in to change notification settings - Fork 5
/
prometheus-config.yml
83 lines (70 loc) · 2.44 KB
/
prometheus-config.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
global:
# The labels to add to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
env: ${ENVIRONMENT_NAME}
cluster: idva-prometheus
__replica__: replica-${CF_INSTANCE_INDEX}
# Alertmanager configuration
alerting:
alert_relabel_configs:
- action: labeldrop
regex: __replica__
- action: labeldrop
regex: instance
alertmanagers:
- scheme: https
static_configs:
- targets: ['identity-idva-monitoring-alertmanager-${ENVIRONMENT_NAME}.apps.internal:61443']
path_prefix: '/alertmanager/'
# Load rules once and periodically evaluate them according to the
# global 'evaluation_interval'.
rule_files:
- "rules.yml"
remote_write:
- url: https://identity-idva-monitoring-cortex-${ENVIRONMENT_NAME}.apps.internal:61443/api/v1/push
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped
# from this config.
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:8080']
metrics_path: '/prometheus/metrics'
scheme: http
- job_name: 'dns-discovery-kong'
dns_sd_configs:
- names:
- 'identity-idva-kong-${ENVIRONMENT_NAME}.apps.internal'
type: 'A'
port: 8100
scheme: https
- job_name: 'cf-metrics'
scheme: https
static_configs:
- targets: ['identity-idva-cf-metrics-${ENVIRONMENT_NAME}.apps.internal:61443']
- job_name: 'grafana'
scheme: https
static_configs:
- targets: ['identity-idva-monitoring-grafana-${ENVIRONMENT_NAME}.apps.internal:61443']
- job_name: 'watchtower'
scheme: https
static_configs:
- targets: ['identity-idva-monitoring-watchtower-${ENVIRONMENT_NAME}.apps.internal:61443']
- job_name: 'redis-exporter'
scheme: https
static_configs:
- targets: ['identity-idva-metrics-redis-${ENVIRONMENT_NAME}.apps.internal:61443']
- job_name: 'elasticsearch-exporter'
scheme: https
static_configs:
- targets: ['identity-idva-metrics-elasticsearch-${ENVIRONMENT_NAME}.apps.internal:61443']
- job_name: 'alertmanager'
scheme: https
static_configs:
- targets: ['identity-idva-monitoring-alertmanager-${ENVIRONMENT_NAME}.apps.internal:61443']
metrics_path: '/alertmanager/metrics'
- job_name: 'cortex'
scheme: https
static_configs:
- targets: ['identity-idva-monitoring-cortex-${ENVIRONMENT_NAME}.apps.internal:61443']