Mastodon Network Monitoring
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
compose
config
docs
mnm
requirements
scripts
utility
.coveragerc
.dockerignore
.editorconfig
.gitattributes
.gitignore
.pylintrc
.travis.yml
CONTRIBUTORS.txt
ISSUE_TEMPLATE.md
LICENSE
README.rst
SCHEMA.rst
dev.yml
docker-compose.example.yml
env.example
manage.py
pytest.ini
setup.cfg

README.rst

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"