{"repo":"lordslair/discord-prometheus-exporter","free":true,"listed":false,"github":"https://github.com/lordslair/discord-prometheus-exporter","clone":"git clone https://github.com/lordslair/discord-prometheus-exporter.git","description":null,"language":"Python","stars":11,"topics":["discord-bot","discord-py","prometheus-exporter","grafana-dashboard","python","prometheus"],"license":"MIT","category":"analytics","readme_excerpt":"discord-prometheus-exporter, the project : TLDR; This is a Python rewrite of a another Discord metrics exporter: [nimarion/promcord][promcord] This project started as I wanted to have a simple and lightweight container to export Discord stats into Prometheus. So discord-prometheus-exporter (DPE) was born I found an amazing job done with primcord . Unfortunately for me, it's in Java - and I can't read a thing. So for updates or custom features, it was impossible to read or patch something on my side. I decided to do a fork/rewrite of their job, and with the 1.0.x I achieved a 90% metrics coverage so far. Variables To work properly, the scripts will require informations and credentials. We assume they are passed to the container in ENV variables. Discord Server variables : - DISCORD TOKEN : Your BOT Token (Mandatory) Exporter variables : - EXPORTER PORT : Listening port (Default: 8080 ) - POLLING INTERVAL : Interval in seconds between Discord calls (Default: 10 ) ENV global variables : - LOGURU LEVEL : Minimal level for log output (Default: DEBUG ) If you want to enable persistence, for Messages and Reactions Counters: - PERSIST FILE : Complete path to the file to use for persistence (Default: None ) - PERSIST TIMER : Interval in seconds between filesaves (Default: 60 ) If you want to use a probe to check the exporter status (on /healthz): - HEALTH PORT : Healthcheck listening port (Default: 8081 ) Output on container start Exported metrics so far Tech I mainly used : [nimarion","default_branch":null,"files":null,"tree":[],"storefront":"/r/lordslair","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lordslair/discord-prometheus-exporter/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."}