This project tries to fetch openly accessible business metrics for mastodon like number of active users, number of posts...
This project is still at an early stage of development. Please report any bugs or suggestion by creating an issue.
- Get the latest release
mv mastodon_prometheus_exporter /usr/local/bin
chmod +x /usr/local/bin/mastodon_prometheus_exporter
Export the needed env var:
export MASTODON_INSTANCE="https://h4.io"
export EXPORTER_PORT=8080
Then run the app: /usr/local/bin/mastodon_prometheus_exporter
Alternatively you can edit the systemd service exemple and then move it to /etc/systemd/system/
and do:
sudo useradd -s /sbin/nologin -M mastodon_exporter
sudo systemctl daemon-reload
sudo systemctl enable mastodon_prometheus_exporter.service
sudo systemctl start mastodon_prometheus_exporter.service
The Dashboard is available on the Grafana website.
This repository is built with:
See CONTRIBUTING.md
This project is licensed under the Apache2.0 License
- Contact us on Matrix h4-dev:matrix.org
- If appropriate, open an issue on GitHub
See the code of conduct befor contacting us.
This project was launched to provide a simple and free prometheus export for mastodon business metrics.
We created it for our own needs on the H4 project.
This repository use Victoria Metrics licensed under the MIT License.
Please refer to the other repositories to checkout acknowledgements for each services.