Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mautrix metrics #2427

Merged
merged 2 commits into from
Jan 30, 2023
Merged

Mautrix metrics #2427

merged 2 commits into from
Jan 30, 2023

Conversation

alemairebe
Copy link
Contributor

Adding ability to expose metrics endpoints of mautrix bridges which supports it.

@spantaleev spantaleev merged commit cad83dd into spantaleev:master Jan 30, 2023
spantaleev added a commit that referenced this pull request Jan 30, 2023
Related to #2427

`metrics_enabled` should only expose the metrics locally, on the
container network, so that a local Prometheus can consume them.

Exposing them publicly should be done via a separate toggle (`metrics_proxying_enabled`).
This is how all other roles work, so this makes these mautrix roles consistent with the rest.
spantaleev added a commit that referenced this pull request Jan 30, 2023
…s is enabled

Related to #2427

This just enables the endpoint, which is somewhat helpful, but not
really enough to scrape them. Ideally, we'd be injecting these targets
into the Prometheus scrape config too.
For now, registering targets with Prometheus is very manual
(`matrix_prometheus_scraper_postgres_enabled`, `matrix_prometheus_scraper_hookshot_enabled`, ..).
This should be redone - e.g. a new `matrix_prometheus_scrape_config_jobs_auto` variable,
which is dynamically built in `group_vars/matrix_servers`.
spantaleev added a commit that referenced this pull request Jan 30, 2023
@spantaleev
Copy link
Owner

Nice! Thank you!

I've done a few improvements to make this consistent with the rest of the playbook. See the associated commits. You'd need to toggle the metrics_proxying_enabled variables as well now if you'd like to expose the metrics publicly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants