Repository navigation
1.1.0
70K downloads on Docker Hub and user feedback motivated me to release this version, thanks to all the contributors ❤️
What's Changed
- #1 @tobiashering added example of using Docker Socket Proxy in PR #5
- #2 @jpsutton fixed in PR #3
- #6 Fixed a bug that caused the container to stop with a
panicwhen receiving an empty value - #7 @DragonCat1 fixed in PR #11
- #8 Added compose labels with a check for their presence (e.g.
docker_cpu_usage_total{containerId="fa36c50bc0bc6eddc930062c90770b592681ea4ad574b14f6acbedf1a303cb22",containerName="prometheus",composeProject="logporter",composeService="prometheus",composeWorkDir="/home/runner/work/logporter/logporter",hostname="runnervm3jd5f"} 0.085677) - #9 Added a new
docker_container_statusmetric for each container, showing its status: running (1) or stopped (0), and removed thedocker_containers_up_countanddocker_containers_down_countmetrics - #10 Improved overall performance by caching all collected metrics when polling at intervals longer than 15 seconds by default (caching time can be changed using the
DOCKER_METRICS_CACHEvariable and the recommended scrape time) - #10 Changed the method for retrieving the number of log entries since the last poll (using the
sinceparameter), which reduced the log retrieval time by half. The first poll at startup collects all logs since the start, after which the counter accumulates - #10 Added a worker for collecting metrics in the background with its own cache (the caching time can be changed using the
DOCKER_METRICS_LOG_CACHEvariable; the default is 15 seconds), allowing for the collection of custom metrics without delay - #10 Improved memory consumption performance when calculating the number of logs metric
- #12 Added a new metric with a list of all images and their size in the value
- #12 Added a new metric containing a list of all volumes and their size in the value retrieved by background workers (by default, the metric cache is 15 minutes, which can be changed using the
DOCKER_METRICS_VOLUME_CACHEvariable) - Hostname and port have been moved to environment variables
- Expanded logging (added duration for background workers) and updated logger to
slog - Added Action Workflows for CI (build image, check metrics and publish on Docker Hub)
- #14 Added opencode to AI Workflow for code review
- Added documentation for quickly starting a monitoring stack with automatic configuration of Prometheus and Grafana with a single command
- #15 Updated the list of metrics for documentation using AI from Actions
- #16
DOCKER_METRICS_LOGmode is disabled by default due to increased resource consumption