summaryrefslogtreecommitdiffstats
path: root/src/cephadm/samples/custom_container.json
blob: 194a44d2abbf16ee4416fc13caacafc107f0ebc3 (plain)
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
{
    "image": "docker.io/prom/alertmanager:v0.20.0",
    "ports": [9093, 9094],
    "args": [
        "-p", "9093:9093",
        "-p", "9094:9094"
    ],
    "dirs": ["etc/alertmanager"],
    "files": {
        "etc/alertmanager/alertmanager.yml": [
            "global:",
            "  resolve_timeout: 5m",
            "",
            "route:",
            "  group_by: ['alertname']",
            "  group_wait: 10s",
            "  group_interval: 10s",
            "  repeat_interval: 1h",
            "  receiver: 'web.hook'",
            "receivers:",
            "- name: 'web.hook'",
            "  webhook_configs:",
            "  - url: 'http://127.0.0.1:5001/'",
            "inhibit_rules:",
            "  - source_match:",
            "      severity: 'critical'",
            "    target_match:",
            "      severity: 'warning'",
            "    equal: ['alertname', 'dev', 'instance']"
        ]
    },
    "volume_mounts": {
        "etc/alertmanager": "/etc/alertmanager"
    }
}