bundles/matrix-{media-repo,synapse}: catch all them metrics into influxdb
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
e58b447eb7
commit
e10ac0e57f
6 changed files with 51 additions and 9 deletions
|
@ -77,6 +77,20 @@ for name, config in sorted(node.metadata.get('telegraf/input_plugins/tail', {}).
|
|||
|
||||
telegraf_config['inputs']['tail'].append(config)
|
||||
|
||||
for name, config in sorted(node.metadata.get('telegraf/input_plugins/http', {}).items()):
|
||||
if 'http' not in telegraf_config['inputs']:
|
||||
telegraf_config['inputs']['http'] = []
|
||||
|
||||
config['name_override'] = name
|
||||
telegraf_config['inputs']['http'].append(config)
|
||||
|
||||
for name, config in sorted(node.metadata.get('telegraf/input_plugins/prometheus', {}).items()):
|
||||
if 'prometheus' not in telegraf_config['inputs']:
|
||||
telegraf_config['inputs']['prometheus'] = []
|
||||
|
||||
config['name_override'] = f'{name}_metrics'
|
||||
telegraf_config['inputs']['prometheus'].append(config)
|
||||
|
||||
files = {
|
||||
'/etc/telegraf/telegraf.conf': {
|
||||
'content_type': 'mako',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue