bundles/postfix: use own postqueue exporter

This commit is contained in:
Franzi 2021-04-24 10:17:05 +02:00
parent 76f46ca7d5
commit c97d9ab948
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 30 additions and 2 deletions

View file

@ -53,10 +53,18 @@ else:
if node.has_bundle('telegraf'):
defaults['telegraf'] = {
'input_plugins': {
'builtin': {
'postfix': [{}],
'exec': {
'postfix': {
'commands': ['postfix-telegraf-queue'],
'interval': '15s',
'data_format': 'influx',
'timeout': '5s',
},
},
},
'sudo_commands': {
'/usr/sbin/postqueue -j',
},
}