aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/prometheus/templates/prometheus-server.json.j2
blob: 4f875bf3bb9fa10a0e1ea378eddc4b10bb626f2d (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
    "command": "{{ prometheus_server_command }}",
    "config_files": [
        {
            "source": "{{ container_config_directory }}/prometheus.yml",
            "dest": "/etc/prometheus/prometheus.yml",
            "owner": "prometheus",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/web.yml",
            "dest": "/etc/prometheus/web.yml",
            "owner": "prometheus",
            "perm": "0600"
        },
        {
            "source": "{{ container_config_directory }}/extras/*",
            "dest": "/etc/prometheus/extras/",
            "preserve_properties": true,
            "optional": true
        }
        {% if enable_prometheus_alertmanager | bool %},
        {
            "source": "{{ container_config_directory }}/*.rules",
            "dest": "/etc/prometheus/",
            "optional": true,
            "owner": "prometheus",
            "perm": "0600"
        }{% endif %}{% if kolla_copy_ca_into_containers | bool %},
        {
            "source": "{{ container_config_directory }}/ca-certificates",
            "dest": "/var/lib/kolla/share/ca-certificates",
            "owner": "root",
            "perm": "0600"
        }{% endif %}
    ],
    "permissions": [
        {
            "path": "/data",
            "owner": "prometheus:kolla",
            "recurse": true
        },
        {
            "path": "/var/log/kolla/prometheus",
            "owner": "prometheus:kolla",
            "recurse": true
        },
        {
            "path": "/etc/prometheus/extras/",
            "owner": "prometheus:kolla",
            "recurse": true
        }
    ]
}