Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

HornaHomeLab/Prometheus_Exporter_Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Prometheus_Exporter_Docker

cAdvisor is a running daemon that collects, aggregates, processes, and exports information about running containers. Specifically, for each container it keeps resource isolation parameters, historical resource usage, histograms of complete historical resource usage and network statistics. This data is exported by container and machine-wide

How to run cAdvisor

    git clone https://github.com/HornaHomeLab/Prometheus_Exporter_Docker.git \
    && cd ./Prometheus_Exporter_Docker \
    && docker compose up -d --force-recreate

Configure default Docker metrics on Linux Host

  1. Modify daemon.json file.
  • file should be located in one of the paths below
/etc/docker/daemon.json
/var/snap/docker/2915/config/daemon.json

To see the path to the config file check the service status.

  • add following entry to the config file
    {
        "metrics-addr" : "0.0.0.1:9323",
    }
  • restart docker service.
    systemctl restart snap.docker.dockerd.service

If service was not found run command below to list all services:

    sudo systemctl list-units --type=service
  • metrics should be available at <ip_address>:9323/metricsc

About

Docker compose with cAdvisor setup for exporting containers metrics

Topics

Resources

Stars

Watchers

Forks

Used by

Contributors