1ae10375f7
The log metrics service generates metrics from log messages which allows further analysis and alerting to be performed on them. Basic configuration is provided so that metrics are generated for high level warning logs such as error, or warning. Change-Id: I45cc17817c716296451f620f304c0b1108162a56 Partially-Implements: blueprint monasca-roles
19 lines
564 B
Django/Jinja
19 lines
564 B
Django/Jinja
{
|
|
"command": "/opt/logstash/bin/logstash --log-in-json --log /var/log/kolla/logstash/monasca-log-metrics.log -f /etc/logstash/conf.d/log-metrics.conf",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/log-metrics.conf",
|
|
"dest": "/etc/logstash/conf.d/log-metrics.conf",
|
|
"owner": "logstash",
|
|
"perm": "0600"
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/logstash",
|
|
"owner": "logstash:kolla",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|