Skip to content

1.1.0

Choose a tag to compare

@Lifailon Lifailon released this 31 Jul 22:45
· 97 commits to main since this release

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 panic when 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_status metric for each container, showing its status: running (1) or stopped (0), and removed the docker_containers_up_count and docker_containers_down_count metrics
  • #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_CACHE variable and the recommended scrape time)
  • #10 Changed the method for retrieving the number of log entries since the last poll (using the since parameter), 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_CACHE variable; 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_CACHE variable)
  • 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_LOG mode is disabled by default due to increased resource consumption