Giter Site home page Giter Site logo

mastodon-tests's Introduction

mastodon-tests

This is a list of scripts I use to monitor my Mastodon instances.

Installation

  1. Edit the scripts with your server(s) information.
  2. Upload the files to a webserver with PHP that can access your server(s) directly.
    OPTIONAL IF YOU WANT TO MONITOR WEB/PUMA STATS
  3. Edit your /home/mastodon/live/config/puma.rb file to allow for the stats output (see the notes in puma.php for those steps).

PHP Modules Used

These are the list of PHP modules I needed to install to get all of these scripts to work:

  • sqlite3
  • xml
  • zip
  • mysqli
  • intl
  • mbstring
  • pgsql
  • curl
  • redis

Here's the command I had to run to install these after configuring my server with PHP 8.2:
apt install php8.2-sqlite3 php8.2-xml php8.2-zip php8.2-mysql php8.2-intl php8.2-mbstring php8.2-pgsql php8.2-curl php8.2-redis

Additional Notes

I have these scripts running on an nginx server (with php8.2-fpm installed) which is on a private network, these scripts may or may not work for you depending on your networking setup.

I had to edit some of the scripts slightly from what I'm using because I have multiple Sidekiq, Streaming, and Web servers so I removed all of the extra calls to those servers but these should work properly for single server instances. If you need to add more servers I will put together a separate document for that.

Monitoring and Alerting

I monitor the output of these pages using Uptime Kuma with the following settings for each monitor:

Monitor Type: HTTP(s) - Keyword
Friendly Name: <NAME_OF_SERVICE>
URL: http://<IP_OF_NGINX_SERVER>/.php
Keyword: HEALTHY

A screenshot of an example Uptime Kuma monitor config

For alerting, I have Uptime Kuma tied in with Pager Duty for easy management of my alerts.

mastodon-tests's People

Contributors

kujoe avatar

Stargazers

Łukasz Wójcik avatar

Watchers

 avatar Tobias avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.