hedgedoc: add telegraf config for hedgedoc metrics
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Sophie Schiller 2021-11-09 11:48:03 +01:00
parent 8e1f827f44
commit 55798ac704

View file

@ -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',
)