Use a genserver to periodically fetch metrics
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 1 Jan 2023 18:32:14 +0000 (18:32 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 1 Jan 2023 18:32:14 +0000 (18:32 +0000)
commit6e646c4cbc56b3cf8134ca9005c1818c5947dd55
tree7096d2192e1bb8d53ec573251b4de7733905a5cc
parent6be3383a094d2d9b017b548de53e67ed6e8c9811
Use a genserver to periodically fetch metrics

Ref https://github.com/beam-telemetry/telemetry_metrics_prometheus_core/issues/52
lib/pleroma/prometheus_exporter.ex [new file with mode: 0644]
lib/pleroma/web/akkoma_api/controllers/metrics_controller.ex
lib/pleroma/web/telemetry.ex
test/pleroma/web/akkoma_api/metrics_controller_test.exs