
This avoids the need to use a proxy, or some other means, to connect to Prometheus. This is disabled by default and can be enabled by setting enable_prometheus_server_external to true. Change-Id: Ia0af044ff436c2a204b357750a16ff49fcdfec45
50 lines
1.4 KiB
Django/Jinja
50 lines
1.4 KiB
Django/Jinja
{
|
|
"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 %}
|
|
],
|
|
"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
|
|
}
|
|
]
|
|
}
|