{"repo":"davidborzek/docker-exporter","free":true,"listed":false,"github":"https://github.com/davidborzek/docker-exporter","clone":"git clone https://github.com/davidborzek/docker-exporter.git","description":"Prometheus docker exporter","language":"Go","stars":13,"topics":["containers","docker","docker-metrics","docker-prometheus","grafana","metrics","prometheus","prometheus-exporter"],"license":"MIT","category":"analytics","readme_excerpt":"docker-exporter Simple and lightweight Prometheus exporter for Docker container metrics. Prerequisites - Go Installation Using Docker The exporter is available as a Docker image. You can run it using the following example: Note: To run Docker Exporter, you'll need to mount the Docker socket from your host system. This operation necessitates root privileges or the user running the command to be a member of the Docker group. It's important to note that mounting the Docker socket grants the container unrestricted access to Docker. For a more secure approach, consider utilizing the Docker Socket Proxy, which is further explained below for additional information. Running with docker-socket-proxy Note: the docker-socket-proxy needs to have container access enabled. ( CONTAINERS=1 ) Prometheus config Once you have configured the exporter, update your prometheus.yml scrape config: Config Flag Description Default Value Environment Variable ---------------- ---------------------------------------------------------------------------------------------------- ------------------------ ------------------------------ --port The port of docker exporter server. 8080 DOCKER EXPORTER PORT --host The host of docker exporter server. DOCKER EXPORTER HOST --auth-token Optional auth token for the docker exporter server. If no token is set authentication is disabled. DOCKER EXPORTER AUTH TOKEN --log-level Log level for the exporter. info DOCKER EXPORTER LOG LEVEL --ignore-label Set the label name for ","default_branch":null,"files":null,"tree":[],"storefront":"/r/davidborzek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/davidborzek/docker-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}