bundles: add some telegraf plugins
This commit is contained in:
parent
5e0541aef8
commit
a37d31973a
12 changed files with 159 additions and 0 deletions
|
@ -56,3 +56,26 @@ def icinga(metadata):
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'telegraf/input_plugins/builtin/smart',
|
||||
)
|
||||
def telegraf(metadata):
|
||||
if not node.has_bundle('telegraf'):
|
||||
raise DoNotRunAgain
|
||||
|
||||
if metadata.get('smartd/disks', {}):
|
||||
return {
|
||||
'telegraf': {
|
||||
'input_plugins': {
|
||||
'builtin': {
|
||||
'smart': [{
|
||||
'devices': list(sorted(metadata.get('smartd/disks'))),
|
||||
}],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue