feat(monitoring): Add Prometheus metrics integration and enhance logging#20
Merged
nakamuraos merged 11 commits intomainfrom Apr 1, 2026
Merged
feat(monitoring): Add Prometheus metrics integration and enhance logging#20nakamuraos merged 11 commits intomainfrom
nakamuraos merged 11 commits intomainfrom
Conversation
…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.
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.
No description provided.