Docker Exporter (logporter)
logporter
A lightweight alternative to cAdvisor for exporting metrics from Docker containers and log collector for sending to Loki.
Quick start
Clone the repository and run the monitoring full-stack with one command:
git clone https://github.com/Lifailon/logporter
cd logporter
docker-compose up -d
The stack includes Prometheus with an exporter connected and alerts configured, a Loki server targeted by a log collector, and Grafana with pre-configured data sources and added dashboards.
Go to Grafana UI: http://localhost:3000 and enter admin:admin.
Manual setup
- Run the exporter in a container using the image published on Docker Hub:
docker run -d --name logporter \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 9333:9333 \
--restart=always \
lifailon/logporter:latest
- Connect the new target to the Prometheus configuration file:
scrape_configs:
- job_name: logporter
scrape_interval: 15s
scrape_timeout: 2s
static_configs:
- targets:
- localhost:9333
- Import the prepared public Grafana dashboard using the id
23848or from json file.
Data source config
Collector type:
Collector plugins:
Collector config:
Revisions
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