Sorunome / mx-puppet-bridge

Puppeting library for matrix
Apache License 2.0
95 stars 29 forks source link

Add prometheus metrics #72

Closed jdreichmann closed 3 years ago

jdreichmann commented 3 years ago

Continuation of #71

The following metrics are available for scraping with prometheus:

Labeling by the protocol id enables you to have a single scrape config in prometheus with many mx-puppet-* bridges as targets, and easily visualizing global bridge activity with f.ex. grafana.

For bride_connected to work, the implementing bridge needs to call trackConnectionStatus on connect/disconnect.