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 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:
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: 10s
    scrape_timeout: 10s
    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