Skip to content

feat(monitoring): Add Prometheus metrics integration and enhance logging#20

Merged
nakamuraos merged 11 commits intomainfrom
feat/monitoring-prometheus
Apr 1, 2026
Merged

feat(monitoring): Add Prometheus metrics integration and enhance logging#20
nakamuraos merged 11 commits intomainfrom
feat/monitoring-prometheus

Conversation

@nakamuraos
Copy link
Copy Markdown
Contributor

No description provided.

…n.rs

Add metrics field to AppState, update CacheManager::new
to accept Arc<Metrics> and record cache hits/misses/sizes, wire Prometheus
server startup and metrics propagation through app.rs and main.rs, and fix
all test helpers to supply the new required arguments.
- Added debug logging to various fetch methods in proxy sources (alias, http, local, router, s3, video) to track URL resolutions and fetch completions.
- Instrumented functions in the security module (allowlist, encryption, hmac) to log key operations and outcomes.
- Improved logging in transform operations (blur, color, decode, encode, gif_anim, resize, rotate, watermark) to capture input parameters and results.
- Updated integration tests to use new environment variable prefixes for consistency.
…ppState in test helpers

Create one Metrics instance and pass it with .clone() so cache metrics and the metrics endpoint
use the same registry. Also add a comment in record_cache_sizes explaining disk entry count is
not tracked.
@nakamuraos nakamuraos merged commit 17b98dc into main Apr 1, 2026
1 check passed
@nakamuraos nakamuraos deleted the feat/monitoring-prometheus branch April 1, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant