diff --git a/bundles/hedgedoc/metadata.py b/bundles/hedgedoc/metadata.py index 89715aa..048ca34 100644 --- a/bundles/hedgedoc/metadata.py +++ b/bundles/hedgedoc/metadata.py @@ -74,6 +74,29 @@ defaults = { } +if node.has_bundle('telegraf'): + defaults['telegraf'] = { + 'input_plugins': { + 'builtin': { + 'http': [{ + 'urls': [ + 'http://127.0.0.1:3000/status' + ], + 'data_format': 'json', + 'name_override': 'hedgedoc_status', + }], + 'prometheus': [{ + 'urls': [ + 'http://127.0.0.1:3000/metrics' + ], + 'name_override': 'hedgedoc_metrics', + 'metric_version': 2, + }], + }, + }, + } + + @metadata_reactor.provides( 'icinga2_api/hedgedoc/services', )