bundles/postfix: use own postqueue exporter
This commit is contained in:
parent
76f46ca7d5
commit
c97d9ab948
3 changed files with 30 additions and 2 deletions
|
@ -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',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue