0d79d25fe9
Change-Id: I0d7c7f47e6653cf2903589a9c86798a8c6404af5
44 lines
1.5 KiB
Django/Jinja
44 lines
1.5 KiB
Django/Jinja
{
|
|
"command": "/opt/prometheus/prometheus --config.file /etc/prometheus/prometheus.yml --web.listen-address {{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_port }} --web.external-url={{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ prometheus_port }} --storage.tsdb.path /var/lib/prometheus{% if prometheus_cmdline_extras %} {{ prometheus_cmdline_extras }}{% endif %}",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/prometheus.yml",
|
|
"dest": "/etc/prometheus/prometheus.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
|
|
}
|
|
]
|
|
}
|