Git Product home page Git Product logo

Comments (11)

aaronraimist avatar aaronraimist commented on May 25, 2024 1

Looks like we forgot to mention it here but you can expose the metrics like since #86. This is what my config looks like:

matrix_synapse_metrics_enabled: true
matrix_nginx_proxy_proxy_synapse_metrics: false
matrix_synapse_metrics_port: 9129
matrix_synapse_container_metrics_api_host_bind_port: "127.0.0.1:9129"

from matrix-docker-ansible-deploy.

spantaleev avatar spantaleev commented on May 25, 2024 1

We may be turning into systemd, sort of ;)

I guess what happened is.. it's nice to be able to monitor your Matrix server and Prometheus/Grafana seem to be popular tools for that (not just with Synapse, but also with various bridges, etc.), so lots of people may wish to be able to monitor the server that way.

Still, installing and configuring Prometheus/Grafana can be difficult and annoying. Doing it separately, just for the sake of your Matrix server (which is the only thing a lot of people may wish to monitor) is not easy. Installing Prometheus/Grafana on the Matrix server (for those who only wish to monitor their Matrix server) can be annoying without it being baked into the playbook (extra certificates and vhosts managed manually, etc.). Although the playbook is flexible enough to allow people to obtain SSL certificates for other domains and to inject extra nginx configuration, it's still a bit of a battle.. Which doesn't seem worth it to most of us. I'm happy to be able to look at some graphs for my server, but I'm also not willing to spend effort to install Prometheus/Grafana neither separately (on another server), nor by hacking away manually on the Matrix server.

Another thing that happened is.. someone actually went through all the trouble to contribute support for Prometheus/Grafana, so me having no plans to work on doing that myself was nicely resolved.

from matrix-docker-ansible-deploy.

spantaleev avatar spantaleev commented on May 25, 2024

Are you thinking the playbook should be made to install Prometheus and Grafana? .. or rather, that we'd just make Synapse expose the metrics, so they can be hooked to an external Prometheus setup?

from matrix-docker-ansible-deploy.

aaronraimist avatar aaronraimist commented on May 25, 2024

It would be great if it could install it all.

from matrix-docker-ansible-deploy.

spantaleev avatar spantaleev commented on May 25, 2024

@aaronraimist, do you have a good Grafana dashboard for Synapse's metrics?

I've tried setting up metrics collection and visualizing it with this Prometheus console, but:

  • a lot of the graphs (especially interesting ones like "Federation") are missing for some reason ("No timeseries returned")

  • the graphs that do appear to be there seem kind of useless ("Cache hit ratio" graph having way too many things on it)

I'm not sure if I'm doing something wrong, but.. it doesn't seem like this setup is too useful.
Probably if these other graphs start working or if there's some good Grafana dashboard..

from matrix-docker-ansible-deploy.

aaronraimist avatar aaronraimist commented on May 25, 2024

I don't but TravisR and I think Half Shot have some pretty good setups so you might be able to contact them.

https://matrix.to/#/!qPNOnUsNsZrToFZqxB:half-shot.uk/$15335863793215gQKyQ:t2l.io

from matrix-docker-ansible-deploy.

spantaleev avatar spantaleev commented on May 25, 2024

Seems like there is a Grafana dashboard in the Synapse repository: https://github.com/matrix-org/synapse/tree/master/contrib/grafana

It looks much better and more useful than the Prometheus Console discussed above.

It might have some issues though, looking at this: matrix-org/synapse#3862

from matrix-docker-ansible-deploy.

richvdh avatar richvdh commented on May 25, 2024

(the prometheus console is essentially unmaintained, as you've discovered)

from matrix-docker-ansible-deploy.

ptman avatar ptman commented on May 25, 2024

I think prometheus and grafana may be a big out-of-scope for this project, but at least exposing prometheus metrics safely would be a nice addition.

from matrix-docker-ansible-deploy.

spantaleev avatar spantaleev commented on May 25, 2024

I guess that having the ability to expose metrics to an externally-installed Prometheus/Grafana is good enough as far as the scope of the playbook is concerned.

I'll close this issue, as there are no plans to install Prometheus/Grafana via the playbook at this time.

from matrix-docker-ansible-deploy.

ptman avatar ptman commented on May 25, 2024

What happened? #838

from matrix-docker-ansible-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.