{"id":13458801,"url":"https://github.com/python-discord/metricity","last_synced_at":"2025-10-13T23:24:45.384Z","repository":{"id":42481905,"uuid":"290050798","full_name":"python-discord/metricity","owner":"python-discord","description":"Advanced metric collection for the Python Discord server","archived":false,"fork":false,"pushed_at":"2024-09-26T13:20:02.000Z","size":1239,"stargazers_count":44,"open_issues_count":7,"forks_count":17,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-09-06T13:42:06.078Z","etag":null,"topics":["discord","discord-bot","metrics","postgresql","statistics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python-discord.png","metadata":{"funding":{"patreon":"python_discord","custom":"https://www.redbubble.com/people/pythondiscord"},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-08-24T22:10:57.000Z","updated_at":"2025-07-31T14:26:40.000Z","dependencies_parsed_at":"2023-01-31T00:02:06.606Z","dependency_job_id":"9d24b417-5da5-472a-bc29-aa7eb2ec191d","html_url":"https://github.com/python-discord/metricity","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/python-discord/metricity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-discord%2Fmetricity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-discord%2Fmetricity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-discord%2Fmetricity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-discord%2Fmetricity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python-discord","download_url":"https://codeload.github.com/python-discord/metricity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-discord%2Fmetricity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017243,"owners_count":26086015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["discord","discord-bot","metrics","postgresql","statistics"],"created_at":"2024-07-31T09:00:57.538Z","updated_at":"2025-10-13T23:24:45.335Z","avatar_url":"https://github.com/python-discord.png","language":"Python","funding_links":["https://patreon.com/python_discord","https://www.redbubble.com/people/pythondiscord"],"categories":["Example Bots"],"sub_categories":["Miscellaneous"],"readme":"![Metricity Banner](./docs/banner.png)\n\nMetricity is an application for the Python Discord server which collects advanced metrics on the usage of the server.\n\nMetricity only provides the collection of metrics, a service such as Grafana should be used to generate visualisations of the data.\n\n### Setup\n\nYou will need [Poetry](https://python-poetry.org) to setup and run Metricity. There is a Docker image available which has a working poetry installation.\n\nThere are two environment variables, `BOT_TOKEN` and `DATABASE_URI`. These should be set to the Discord developer token and postgres database URI respectively. You can also alter these configuration values by copying `config-default.toml` to `config.toml` and altering the values, this file should not be comitted to git, it is your personal configuration.\n\nTo apply database migrations run `poetry run alembic upgrade head`.\n\nTo run the application use `poetry run start`.\n\nIf you alter the models then use `poetry run alembic revision -m \"\u003cWhat you changed\u003e\" --autogenerate` to generate a migration. **Make sure to check the changes generated are correct**.\n\n### Join us on Discord!\n\nIf you are a Python programmer and want to meet fellow Pythonistas, come join us at \u003chttps://discord.gg/python\u003e!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-discord%2Fmetricity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython-discord%2Fmetricity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-discord%2Fmetricity/lists"}