/mastodon-monitoring

My Docker-based setup for monitoring a Mastidin instance with Prometheus

Apache License 2.0Apache-2.0

Mastodon monitoring and metrics setup

My Docker-based setup for monitoring a Mastodon instance with Prometheus and Grafana

Overview

Mastodon can optionally send metrics to a StatsD endpoint. We can use statsd-exporter to receive the metrics and map them to Prometheus metrics.

The setup consists of the following services:

  • statsd-exporter: Receives StatsD metrics from the Mastodon processes and transforms them to Prometheus metrics
  • cAdvisor: Container metrics
  • Prometheus: scrapes metrics from the above services

Mappings

Mastodon collects the StatsD metrics listed here. See statsd-exporter/statsd_mapping.yml for the rules that transforms these metrics.

Grafana dashboard

The dashboard I created based on the data is available at grafana/dashboard.json if you want to import it.