Docker Exporter (logporter)

Source code: https://github.com/Lifailon/logporter

Docker Exporter (logporter) screenshot 1
Docker Exporter (logporter) screenshot 2

logporter

A simple and lightweight alternative to cAdvisor for getting all basic metrics from Docker containers with support metrics by logs.

On average, CPU consumption is 15-20 times lower and memory consumption is 10 times lower in the basic metrics mode (including IOps and uptime) compared to cAdvisor.

Install

  • Run the exporter in a container using an image from Docker Hub:
Bash
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:
yml
scrape_configs:
  - job_name: logporter
    scrape_interval: 5s
    scrape_timeout: 1s
    static_configs:
      - targets:
        - localhost:9333
Revisions
RevisionDescriptionCreated
Docker

Docker

by Grafana Labs
Grafana Labs solution

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

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies