-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathprometheus-grafana-definition.json
83 lines (82 loc) · 2.53 KB
/
prometheus-grafana-definition.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
{
"family": "prometheus-grafana-definition",
"taskRoleArn": "arn:aws:iam::342241566140:role/AmazonECSTaskRole",
"containerDefinitions": [
{
"name": "init-container",
"image": "alpine:latest",
"cpu": 0,
"memory": 256,
"memoryReservation": 128,
"essential": false,
"command": [
"wget",
"https://raw.githubusercontent.com/santosh07bec/ecs-monitoring-with-prometheus-grafana/master/prometheus.yml",
"-P",
"/mnt"
],
"mountPoints": [
{
"sourceVolume": "prometheus_config",
"containerPath": "/mnt"
}
]
},
{
"name": "prometheus",
"image": "prom/prometheus:v2.4.0",
"cpu": 512,
"memory": 512,
"memoryReservation": 256,
"portMappings": [
{
"containerPort": 9090,
"hostPort": 9090,
"protocol": "tcp"
}
],
"essential": true,
"mountPoints": [
{
"sourceVolume": "prometheus_config",
"containerPath": "/etc/prometheus"
}
],
"dependsOn": [
{
"containerName": "init-container",
"condition": "COMPLETE"
}
]
},
{
"name": "grafana",
"image": "grafana/grafana",
"cpu": 512,
"memory": 512,
"memoryReservation": 128,
"portMappings": [
{
"containerPort": 3000,
"hostPort": 3000,
"protocol": "tcp"
}
],
"essential": true
}
],
"volumes": [
{
"name": "prometheus_config",
"dockerVolumeConfiguration": {
"scope": "task",
"driver": "local"
}
}
],
"requiresCompatibilities": [
"EC2"
],
"cpu": "1024",
"memory": "512"
}