{"id":13580827,"url":"https://github.com/stefanprodan/dockerd-exporter","last_synced_at":"2025-04-06T06:32:03.064Z","repository":{"id":65333208,"uuid":"99478731","full_name":"stefanprodan/dockerd-exporter","owner":"stefanprodan","description":"Prometheus Docker daemon metrics exporter","archived":true,"fork":false,"pushed_at":"2018-09-03T10:17:34.000Z","size":4,"stargazers_count":17,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-05T20:46:37.311Z","etag":null,"topics":["docker","prometheus","swarm"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefanprodan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-06T10:14:58.000Z","updated_at":"2023-01-27T19:19:54.000Z","dependencies_parsed_at":"2023-01-17T13:15:48.015Z","dependency_job_id":null,"html_url":"https://github.com/stefanprodan/dockerd-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanprodan%2Fdockerd-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanprodan%2Fdockerd-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanprodan%2Fdockerd-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanprodan%2Fdockerd-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanprodan","download_url":"https://codeload.github.com/stefanprodan/dockerd-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445649,"owners_count":20939952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","prometheus","swarm"],"created_at":"2024-08-01T15:01:55.429Z","updated_at":"2025-04-06T06:32:02.782Z","avatar_url":"https://github.com/stefanprodan.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# dockerd-exporter\n\n[![Docker Image](https://images.microbadger.com/badges/image/stefanprodan/dockerd-exporter.svg)](https://hub.docker.com/r/stefanprodan/dockerd-exporter/)\n\nPrometheus Docker daemon metrics exporter\n\n### Docker Engine \n\nCreate or edit /etc/systemd/system/docker.service.d/docker.conf, \nenable the experimental feature and set the metrics address to 0.0.0.0:\n\n```\n[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// \\\n  --storage-driver=overlay2 \\\n  --dns 8.8.4.4 --dns 8.8.8.8 \\\n  --log-driver json-file \\\n  --log-opt max-size=50m --log-opt max-file=10 \\\n  --experimental=true \\\n  --metrics-addr 0.0.0.0:9323\n```\n\nCheck if the docker_gwbridge ip address is `172.18.0.1`:\n\n```bash\n docker run --rm --net host alpine ip -o addr show docker_gwbridge\n```\n\n### Docker Swarm \n\nCreate an overlay network:\n\n```sh\ndocker network create \\\n  --driver overlay \\\n  netmon\n```\n\nCreate dockerd-exporter global service (replace 172.18.0.1 with your docker_gwbridge address):\n\n```sh\ndocker service create -d \\\n  --mode global \\\n  --name dockerd-exporter \\\n  --network netmon \\\n  -e IN=\"172.18.0.1:9323\" \\\n  -e OUT=\"9323\" \\\n  stefanprodan/dockerd-exporter:latest\n```\n\nConfigure Prometheus to scrape the dockerd-exporter instances:\n\n```\nscrape_configs:\n- job_name: 'dockerd-exporter'\n  dns_sd_configs:\n  - names:\n    - 'tasks.dockerd-exporter'\n    type: 'A'\n    port: 9323\n```\n\nRun Prometheus on the same overlay network as dockerd-exporter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanprodan%2Fdockerd-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanprodan%2Fdockerd-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanprodan%2Fdockerd-exporter/lists"}