hedgedoc: add telegraf config for hedgedoc metrics
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
8e1f827f44
commit
55798ac704
1 changed files with 23 additions and 0 deletions
|
@ -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(
|
@metadata_reactor.provides(
|
||||||
'icinga2_api/hedgedoc/services',
|
'icinga2_api/hedgedoc/services',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue