svoeth / mnm

Mastodon Network Monitoring

Home Page:https://mnm.social

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mnm

Mastodon Network Monitoring: track and display browsable stats about Mastodon network (instances, toots, users...).

Public instance available here: https://mnm.eliotberriot.com

Built with Cookiecutter Django
License:MIT

Architecture

  • Data about instances is pulled from https://instances.mastodon.xyz/instances.json
  • Data is stored temporary in a database, then pushed in a dedicated timeseries database (influxdb)
  • Grafana is connected to influxdb in order to create pretty and useful charts / dashboards

Deploying

Docker-only at the moment:

cp env.example .env
nano .env

docker-compose up --build -d

# create initial tables in database
docker-compose run django python manage.py migrate

# create a super user
docker-compose run django python manage.py createsuperuser

# create the required influxdb database
docker-compose -f dev.yml exec influxdb curl -i -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE mnm"

About

Mastodon Network Monitoring

https://mnm.social

License:MIT License


Languages

Language:JavaScript 47.3%Language:CSS 47.2%Language:Python 4.2%Language:HTML 1.0%Language:Shell 0.3%Language:Dockerfile 0.0%