-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathmetrics.json
131 lines (131 loc) · 2.67 KB
/
metrics.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"id": "/monitoring/metrics",
"environment": {
"GF_AUTH_BASIC_ENABLED": "false",
"GF_AUTH_ANONYMOUS_ENABLED": "true",
"GF_SERVER_ROOT_URL": "/service/grafana",
"GF_AUTH_ANONYMOUS_ORG_ROLE": "Admin",
"GF_PATHS_PROVISIONING": "/mnt/mesos/sandbox"
},
"containers": [
{
"name": "prometheus",
"resources": {
"cpus": 0.1,
"mem": 1024,
"disk": 0
},
"image": {
"kind": "DOCKER",
"id": "philipnrmn/prometheus-on-dcos:proxy",
"forcePull": true
},
"healthCheck": {
"http": {
"scheme": "HTTP",
"endpoint": "prom",
"path": "/"
},
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"timeoutSeconds": 20,
"delaySeconds": 15
},
"endpoints": [
{
"name": "prom",
"containerPort": 9090,
"hostPort": 0,
"protocol": [
"tcp"
],
"labels": {
"VIP_0": "/monitoring/metrics:9090"
}
}
],
"volumeMounts": [
{
"name": "data",
"mountPath": "/prometheus/data"
}
]
},
{
"name": "grafana",
"resources": {
"cpus": 0.1,
"mem": 1024,
"disk": 0
},
"image": {
"kind": "DOCKER",
"id": "grafana/grafana"
},
"healthCheck": {
"http": {
"scheme": "HTTP",
"endpoint": "graf",
"path": "/"
},
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"timeoutSeconds": 20,
"delaySeconds": 15
},
"endpoints": [
{
"name": "graf",
"containerPort": 3000,
"hostPort": 0,
"protocol": [
"tcp"
],
"labels": {
"VIP_0": "/monitoring/metrics:3000"
}
}
],
"exec": {
"command": {
"shell": "cd / && /run.sh"
}
},
"artifacts": [
{
"uri": "https://gist.githubusercontent.com/philipnrmn/597ca643880f1833a5ecace1a786bd92/raw/3c88c46f854fd982a1f6f56a75c44cbfdf0dd0d8/prometheus.yaml"
}
]
}
],
"networks": [
{
"name": "dcos",
"mode": "container"
}
],
"scaling": {
"instances": 1,
"kind": "fixed"
},
"scheduling": {
"placement": {
"constraints": []
}
},
"executorResources": {
"cpus": 0.1,
"mem": 32,
"disk": 10
},
"volumes": [
{
"persistent": {
"size": 10240
},
"name": "data"
}
]
}