Docker Exporter (logporter)
Source code: https://github.com/Lifailon/logporter
logporter
A simple and lightweight alternative to cAdvisor for getting basic and custom Docker containers metrics (e.g. container uptime and number of logged messages).
Why collect log counts?
- Compare the increased load with the number of logged messages.
- If the application is not resource-intensive, the number of logged messages will show the increased load.
- Speed up log analysis by displaying at what point in time the most messages were received from the standard and error stream.
Install
- Run the exporter in a container using an image from Docker Hub:
docker run -d --name logporter \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 9333:9333 \
--restart=unless-stopped \
lifailon/logporter:latest
- Connect the new target in the
prometheus.yml
configuration:
scrape_configs:
- job_name: logporter
scrape_interval: 10s
scrape_timeout: 10s
static_configs:
- targets:
- localhost:9333
- Import the prepared public
Grafana Dashboard using the id
23573
or from a json file.
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |

Docker

Easily monitor Docker with Grafana Cloud's out-of-the-box monitoring solution.
Learn more