Skip to content

feat: add prometheus metrics endpoint#5

Merged
glefer merged 1 commit into
mainfrom
feat/prometheus-metrics
Jun 3, 2025
Merged

feat: add prometheus metrics endpoint#5
glefer merged 1 commit into
mainfrom
feat/prometheus-metrics

Conversation

@glefer

@glefer glefer commented Jun 3, 2025

Copy link
Copy Markdown
Owner

This pull request introduces a Prometheus metrics endpoint to the Docker Volume Analyzer application. The /metrics endpoint provides detailed metrics about Docker volumes, enabling integration with Prometheus for monitoring and observability.

Key Changes

Added a /metrics route to the Flask application.
Exposed the following Prometheus metrics:

  • docker_volumes_total: Total number of Docker volumes.
  • docker_volume_size_bytes: Size of individual Docker volumes in bytes, labeled by volume name.

Output example

metrics-endpoint

@github-actions

github-actions Bot commented Jun 3, 2025

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/docker_volume_analyzer
   __init__.py00100% 
   docker_client.py820100% 
   errors.py30100% 
   filesystem.py510100% 
   main.py90100% 
   tui.py1630100% 
   volume_manager.py330100% 
   web.py210100% 
TOTAL3620100% 

@glefer glefer merged commit b647b93 into main Jun 3, 2025
2 checks passed
@glefer glefer deleted the feat/prometheus-metrics branch June 3, 2025 07:22
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