bundles: remove telegraf metrics from systemd-networkd and icinga2
This commit is contained in:
parent
3b1d1f7e94
commit
40160fb25a
2 changed files with 0 additions and 48 deletions
|
@ -27,30 +27,3 @@ def add_vlan_infos_to_interface(metadata):
|
|||
return {
|
||||
'interfaces': interfaces,
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'telegraf/input_plugins/builtin/bond',
|
||||
'telegraf/additional_capabilities',
|
||||
)
|
||||
def telegraf(metadata):
|
||||
if not node.has_bundle('telegraf'):
|
||||
raise DoNotRunAgain
|
||||
|
||||
if metadata.get('systemd-networkd/bonds', {}):
|
||||
return {
|
||||
'telegraf': {
|
||||
'input_plugins': {
|
||||
'builtin': {
|
||||
'bond': [{
|
||||
'bond_interfaces': list(sorted(metadata.get('systemd-networkd/bonds').keys())),
|
||||
}],
|
||||
},
|
||||
},
|
||||
'additional_capabilities': {
|
||||
'CAP_NET_ADMIN',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue