Commit graph

8 commits

Author SHA1 Message Date
139a036dad
fix: handle errors gracefully in user count updates
Return False instead of 0 when fetching registered users fails, and skip updating the gauge if an error occurs. Improves error handling, avoiding misleading user count updates.
2024-06-30 08:15:55 +02:00
101cabb99b
feat(metrics): prefix 'piped_' to registered users gauge
Renamed the `registered_users` gauge to `piped_registered_users` to enhance naming clarity and avoid potential conflicts with similar metrics in broader monitoring ecosystems. This prefix addition aligns with a more descriptive and scoped naming convention, facilitating easier identification and filtering within Prometheus and related tools. This change is part of ongoing efforts to improve metric naming consistency across the system.
2024-05-23 18:35:33 +02:00
dd890f1708
feat: Fork exporter to Prometheus Piped
Forked the allkeyshop.com game price exporter for a Prometheus exporter for Piped instances, focusing on tracking registered users. This shift addresses the need for monitoring Piped, a self-hosted alternative to YouTube, instead of game pricing data. The changes include:

- Updated the .gitignore, LICENSE, README.md, and requirements.txt to reflect the new functionality and dependencies.
- Removed the allkeyshop.py script in favor of a new script, prometheus_piped.py, designed to fetch and expose the number of registered users from multiple Piped instances.
- Transitioned configuration management from settings.ini to config.yaml for improved flexibility and readability.
- Updated licensing information to include contributions from the Private.coffee Team, extending copyright to 2024.

This enhancement allows users to monitor the growth and usage of their Piped instances directly from their Prometheus setups, aligning with the community's move towards self-hosted, privacy-respecting services.
2024-05-23 11:50:25 +02:00
19a32c6d43
Fix LICENSE 2023-05-29 09:37:19 +02:00
488aea5d3b
Quite a few changes:
Use single gauge
Added a README
Added a lot of comments
Get more specific message for HTTP errors on startup
Add command line arguments
Get rid of default metrics
Add error messages to assertions
Make importable by adding main function
2023-03-15 08:42:50 +00:00
77f5e328a5
Missing "f" for f-string 2022-10-24 15:58:35 +00:00
b59707d3a7
Catch exceptions when updating gauge values 2022-10-24 14:28:01 +00:00
2ddefe1154
Current status - seems to be working well enough 2022-10-24 14:19:17 +00:00