8e3cce34a2
Telegraf allow plugin configuration in /etc/telegraf/telegraf.d directory. These files comes from telegraf/templates/config/*.conf, but this directory is optional. Closes-Bug: #1673691 Change-Id: Idc695c86c5f6b6b0bd514728f2025321cd200907
26 lines
734 B
Django/Jinja
26 lines
734 B
Django/Jinja
{
|
|
"command": "telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d/",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/telegraf.conf",
|
|
"dest": "/etc/telegraf/telegraf.conf",
|
|
"owner": "telegraf",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/config/*",
|
|
"dest": "/etc/telegraf/telegraf.d/",
|
|
"owner": "telegraf",
|
|
"perm": "0600",
|
|
"optional": true
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/telegraf",
|
|
"owner": "telegraf:telegraf",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|