https://gitlab.com/lig/fedistats
Fedistats
collects metrics of a Mastodon instance using the Public Timeline API.
go build -o ./build/ -v ./...
Creates ./build/fedistats-collector
binary.
Create ./config/fedistats.yaml
.
mastodon:
server: "https://fosstodon.org" # Required. The Mastodon instance to connect to.
client_id: "<your app client id>" # Required.
client_secret: "<your app client secret>" # Required.
access_token: "<your app access token>" # Required.
metrics:
path: "/metrics" # Optional. Path on which metrics are being served.
port: 2112 # Optional. Port on which metrics are being served.
Launch using:
./build/fedistats-collector
Point your Prometheus instance to http://your-host.tld:<configured port><configured path>