WIP: Implement (Prometheus) Metrics #270

Closed
tim wants to merge 9 commits from tim/akkoma:develop into develop
First-time contributor

This presents my very much WIP of adding Prometheus metrics.
It completely relies on using the Elixir Telemetry system, basically giving us all the heavy lifting for free (and pre-instrumented libraries that we can just hook into :D)

I'd love some early feedback if possible. What lacks from my perspective is currently:

  • Regular updates of instance data like local and remote users, federated instances, acitivities in the local DB and the like
  • Cleanup of metric names
  • Switches to disable Prometheus exporting
  • Update to the Phoenix Dashboard to support the histogram-types used (currently the metrics tab just doesn't load, with the update it's breaking differently. Also the metrics tab has issues with the content security policy).
This presents my very much WIP of adding Prometheus metrics. It completely relies on using the Elixir Telemetry system, basically giving us all the heavy lifting for free (and pre-instrumented libraries that we can just hook into :D) I'd love some early feedback if possible. What lacks from my perspective is currently: - Regular updates of instance data like local and remote users, federated instances, acitivities in the local DB and the like - Cleanup of metric names - Switches to disable Prometheus exporting - Update to the Phoenix Dashboard to support the histogram-types used (currently the metrics tab just doesn't load, with the update it's breaking differently. Also the metrics tab has issues with the content security policy).

oh woa, nice! we used to have a really janky prometheus that would lock up on start a lot, i'll take a look at this properly at some point in the next week

oh woa, nice! we used to have a _really_ janky prometheus that would lock up on start a lot, i'll take a look at this properly at some point in the next week
tim force-pushed develop from fad6c4d3e0 to 970dd40cc1 2022-11-14 21:15:17 +00:00 Compare
First-time contributor

Would be great also to document what we can monitor from Akkoma. It's super nice to understand how the system works, and detect problems early.

Waiting for this PR to land!

Would be great also to document what we can monitor from Akkoma. It's super nice to understand how the system works, and detect problems early. Waiting for this PR to land!

merged with additions via #375

merged with additions via #375
Author
First-time contributor

Sweeeet thx so much for taking this over the finish line <3

Sweeeet thx so much for taking this over the finish line <3
tim closed this pull request 2022-12-22 15:14:11 +00:00
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending

Pull request closed

Sign in to join this conversation.
No description provided.