-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus.json
68 lines (68 loc) · 1.44 KB
/
prometheus.json
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
{
"id": "/prometheus-eos",
"instances": 1,
"cpus": 0.5,
"mem": 4096,
"ports": [
0
],
"env": {
"NODE_EXPORTER_SRV": "node-exporter.service.{{ json_consul_domain }}",
"CADVISOR_SRV": "cadvisor.service.{{ json_consul_domain }}",
"CONSUL_DOMAIN": "{{ json_consul_domain }}",
"STRING_VAULT_HOST": "vault.service.{{ json_consul_domain }}",
"VAULT_PORT": "8200",
"approle": {
"secret": "role"
},
"METRICS_PORT_NAME": "metrics"
},
"secrets": {
"role": {
"source": "open"
}
},
"container": {
"type": "DOCKER",
"volumes": [
{
"containerPath": "prometheus",
"persistent": {
"size": 4096
},
"mode": "RW"
}
],
"docker": {
"image": "stratio/prometheus-dcos:{{ hostvars['localhost'].eos_prometheus_version }}",
"forcePullImage": false,
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 9090,
"protocol": "tcp",
"labels": {
"VIP_0": "prometheus-eos:9090"
}
},
{
"containerPort": 9093,
"protocol": "tcp",
"labels": {
"VIP_0": "prometheus-eos:9093"
}
}
]
}
},
"residency": {
"taskLostBehavior": "WAIT_FOREVER"
},
"healthChecks": [
{
"path": "/api/v1/query?query=prometheus_build_info",
"portIndex": 0,
"protocol": "HTTP"
}
]
}