{"repo":"ApolloRoboto/discord.py-ext-prometheus","free":true,"listed":false,"github":"https://github.com/ApolloRoboto/discord.py-ext-prometheus","clone":"git clone https://github.com/ApolloRoboto/discord.py-ext-prometheus.git","description":"Add Prometheus to your Discord bot with this handy extension","language":"Python","stars":20,"topics":["discord","discord-bot","grafana","grafana-dashboard","prometheus","python","bot","monitoring"],"license":"MIT","category":"analytics","readme_excerpt":"discord-ext-prometheus This is a extension library for discord.py that makes it easy to add prometheus metrics to your Python Discord bot. Installation Exposed Metrics Name Documentation Labels -------------------------------- ----------------------------------------------- ----------------------------------- discord connected Determines if the bot is connected to Discord shard discord latency seconds Latency to Discord shard discord event on interaction Amount of interactions called by users shard , interaction , command discord event on command Amount of commands called by users shard , command discord stat total guilds Amount of guild this bot is a member of None discord stat total channels Amount of channels this bot is has access to None discord stat total users Amount of users this bot can see None discord stat total commands Amount of commands None logging Log entries logger , level Notes: - on interaction are application interactions such as slash commands or modals - on command are traditional message commands (usualy using the command prefix) Grafana Dashboard Available to import from Grafana dashboards. How to use This extension won't do much by itself, you must have an instance of Prometheus configured to collect those metrics and an instance of Grafana to visualize it. Once the cog is added to your bot, the Prometheus metric endpoint can be accessed at localhost:8000/metrics . Sample code with the Prometheus Cog Sample code with logging metrics Changing the Prome","default_branch":null,"files":null,"tree":[],"storefront":"/r/ApolloRoboto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ApolloRoboto/discord.py-ext-prometheus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}