Since mastodon just removed the statsd integration for getting server metrics you have to use open telemetry from 4.3 onward. Does anyone have a guide on how to setup open telemetry so it is basically a drop in replacement, or at least is usable with p...
-
Since mastodon just removed the statsd integration for getting server metrics you have to use open telemetry from 4.3 onward. Does anyone have a guide on how to setup open telemetry so it is basically a drop in replacement, or at least is usable with prometheus and grafana?
-
@BentiGorlich You'll need an OTel collector - I'd recommend one per cluster - and then enable a Prometheus endpoint on that (or use Prom remote write, if that's your preference).
Then, point your Prometheus setup at the new endpoint and you should be good.
-
@kittylyst Do you have a link for an OTel collector?
-
@BentiGorlich You don't necessarily need a collector. But you need something that can receive data in OTLP format.
Prometheus has that in beta: https://prometheus.io/docs/guides/opentelemetry/
You can configure where the app should be sending data with those environment variables: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/
If you wish to run the collector anyway (which provides a lot of things, such as turning spans into metrics), you can look into this doc: https://opentelemetry.io/docs/collector/
-
@dmathieu Thanks a lot
Prometheus has no authentication tied to it as far as I understood. And their guide doesn't really give me a hint as to where I should point mastodon to send the data. I will look into the collector and probably use that