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

This commit is contained in:
Franzi 2021-11-09 18:26:52 +01:00
parent e58b447eb7
commit e10ac0e57f
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 51 additions and 9 deletions

View file

@ -157,7 +157,7 @@ timeouts:
clientServerTimeoutSeconds: 30
metrics:
enabled: false
enabled: true
bindAddress: "127.0.0.1"
port: 20091

View file

@ -77,6 +77,20 @@ if node.os == 'debian' and node.os_version[0] <= 10:
},
}
if node.has_bundle('telegraf'):
defaults['telegraf'] = {
'input_plugins': {
'prometheus': {
'matrix_media_repo': {
'urls': [
'http://127.0.0.1:20091/metrics'
],
'metric_version': 2,
},
},
},
}
@metadata_reactor.provides(
'matrix-media-repo/workers',