{"id":17874613,"url":"https://github.com/shadowjonathan/masto_admin_metrics","last_synced_at":"2026-02-14T05:35:13.913Z","repository":{"id":223856630,"uuid":"761731887","full_name":"ShadowJonathan/masto_admin_metrics","owner":"ShadowJonathan","description":"A simple python script to convert admin dashboard metrics into prometheus scrapable metrics","archived":false,"fork":false,"pushed_at":"2024-12-04T12:49:14.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T16:24:17.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShadowJonathan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-22T11:39:57.000Z","updated_at":"2024-12-04T12:49:17.000Z","dependencies_parsed_at":"2024-12-21T15:24:26.818Z","dependency_job_id":"36569566-d976-489f-a939-fdc9e9400f02","html_url":"https://github.com/ShadowJonathan/masto_admin_metrics","commit_stats":null,"previous_names":["shadowjonathan/masto_admin_metrics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShadowJonathan/masto_admin_metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowJonathan%2Fmasto_admin_metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowJonathan%2Fmasto_admin_metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowJonathan%2Fmasto_admin_metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowJonathan%2Fmasto_admin_metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShadowJonathan","download_url":"https://codeload.github.com/ShadowJonathan/masto_admin_metrics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowJonathan%2Fmasto_admin_metrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29438609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T05:24:35.651Z","status":"ssl_error","status_checked_at":"2026-02-14T05:24:34.830Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T11:09:50.833Z","updated_at":"2026-02-14T05:35:13.898Z","avatar_url":"https://github.com/ShadowJonathan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mastodon Admin Metrics\n\n\u003e This is a bit WIP, I'm still figuring out the format of metrics and how to provide them consistently\n\nThis is a very simple script that exports mastodon admin dashboard metrics (\"measures\") to prometheus format,\nto allow for easier manipulation and dashboard integration into grafana and the likes.\n\nI've made a recommended grafana dashboard to go along with this data source: `WIP`\n\nTo make it work, go to \"development\" in the mastodon web UI, and create an application with the permissions `read` and `admin:read`,\nfeel free to disable all other permissions (such as `write`).\n\n- `MASTODON_BASE_URL`: Your server's web interface URL, stripped down to `/`, basically the domain/url that you access your server with.\n- `MASTODON_CLIENT_KEY`: The application's \"Client ID\", or Client Key\n- `MASTODON_CLIENT_SECRET`: The application's Client Secret\n- `MASTODON_ACCESS_TOKEN`: The application's Access Token\n- `PORT`: The port that the metrics server will bind itself to, defaults to `9876`\n- `UPDATE_SECS`: The amount of seconds to wait between calling `/measures`, defaults to 30\n\nThere's also a Dockerfile provided, so that you could add it to a `docker-compose.yml` file with the following snippet:\n```yaml\n# ...\n\n    masto_admin_metrics:\n        build: masto_admin_metrics\n        environment:\n            MASTODON_BASE_URL: \"https://your.server\"\n            MASTODON_CLIENT_KEY: KEY\n            MASTODON_CLIENT_SECRET: SECRET\n            MASTODON_ACCESS_TOKEN: TOKEN\n        restart: always\n        ports:\n        - \"127.0.0.1:9876:9876\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowjonathan%2Fmasto_admin_metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowjonathan%2Fmasto_admin_metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowjonathan%2Fmasto_admin_metrics/lists"}