feat: add Prometheus and StatsD metrics support#1316
Open
kneemaa wants to merge 1 commit intoicloud-photos-downloader:masterfrom
Open
feat: add Prometheus and StatsD metrics support#1316kneemaa wants to merge 1 commit intoicloud-photos-downloader:masterfrom
kneemaa wants to merge 1 commit intoicloud-photos-downloader:masterfrom
Conversation
Add observability support with two metrics backends: - Prometheus: HTTP server exposing /metrics endpoint - StatsD: UDP push to StatsD-compatible servers Metrics tracked: - Download operations (count, bytes, duration, retries) - Photos and videos processed (separate counters) - Sync runs (count, duration, status) - API requests (count, duration, errors) - Authentication attempts and MFA requests New CLI options: - --metrics-backend (none|prometheus|statsd|both) - --prometheus-host, --prometheus-port - --statsd-host, --statsd-port, --statsd-prefix - --metrics-instance (for multi-instance deployments) Also includes: - Documentation with configuration examples - Example Grafana dashboard - Dockerfile exposes port 9090 for Prometheus
61dd0b6 to
e34f8a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As I run icloudpd to continuously backup for myself and family accounts, I wanted a way to monitor and or alert if the runs began to fail. Auth failure metrics could be a work-around to using smtp if you have a method to alert on prometheus metrics.
Potentially relates to #1072 and #183
Add observability support with two metrics backends:
Metrics tracked:
New CLI options:
Also includes:
Dashboard Example -
