{"id":13582436,"url":"https://github.com/infinityworks/docker-hub-exporter","last_synced_at":"2025-04-06T14:30:54.979Z","repository":{"id":38859434,"uuid":"67683776","full_name":"infinityworks/docker-hub-exporter","owner":"infinityworks","description":"Prometheus exporter for the Docker Hub","archived":true,"fork":false,"pushed_at":"2022-09-20T07:50:41.000Z","size":28,"stargazers_count":78,"open_issues_count":2,"forks_count":28,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-05T22:41:17.305Z","etag":null,"topics":["docker","dockerhub","exporter","monitoring","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/infinityworks.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":"2016-09-08T08:25:56.000Z","updated_at":"2024-08-01T17:29:54.000Z","dependencies_parsed_at":"2023-01-17T18:00:53.354Z","dependency_job_id":null,"html_url":"https://github.com/infinityworks/docker-hub-exporter","commit_stats":null,"previous_names":["infinityworksltd/docker-hub-exporter"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fdocker-hub-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fdocker-hub-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fdocker-hub-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinityworks%2Fdocker-hub-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinityworks","download_url":"https://codeload.github.com/infinityworks/docker-hub-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247495730,"owners_count":20948101,"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","dockerhub","exporter","monitoring","prometheus","prometheus-exporter"],"created_at":"2024-08-01T15:02:42.510Z","updated_at":"2025-04-06T14:30:54.749Z","avatar_url":"https://github.com/infinityworks.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Prometheus Docker Hub Exporter\n\nExposes metrics of container pulls and stars from the Docker Hub API, to a Prometheus compatible endpoint. The exporter is capable of pulling down stats for individual images, or for orgs or users from DockerHub. This is based on the un-documented V2 Docker Hub API.\n\n```\n!!! This repository is now deprecated, feel free to fork !!!\n```\n\n## Configuration\n\nThe image is setup to take parameters from environment variables or flags:\n\nThe available environment variables are:\n\n* `BIND_PORT` The port you wish to run the container on, defaults to 9170\n* `ORGS` The docker hub organizations you wish to monitor, expected in the format \"org1, org2\" (Also works for users)\n* `IMAGES` The images you wish to monitor, expected in the format \"user/image1, user/image2\". Can be across different dockerhub users.\n\n\nBelow is a list of the available flags. You can also find this list by using the `--help` flag.\n\n* `images` Images you wish to monitor: expected format 'user/image1,user/image2'\n* `listen-address` Address on which to expose metrics and web interface. (default \":9170\")\n* `organisations` Organisations/Users you wish to monitor: expected format 'org1,org2'\n* `telemetry-path` Path under which to expose metrics. (default \"/metrics\") \n\n## Install and deploy\n\nRun manually from Docker Hub:\n```\ndocker run -d --restart=always -p 9170:9170 infinityworks/docker-hub-exporter -listen-address=:9170 -images=\"infinityworks/ranch-eye,infinityworks/prom-conf\" -organisations=\"super6awspoc\"\n```\n\nBuild a docker image:\n```\ndocker build -t \u003cimage-name\u003e .\ndocker run -d --restart=always -p 9170:9170 \u003cimage-name\u003e -listen-address=:9170 -images=\"infinityworks/ranch-eye,infinityworks/prom-conf\" -organisations=\"super6awspoc\"\n```\n\n## Known Issues\n\nCurrently there is a known issue with this build where if you provide a image or list of images belonging to an organisation\nthat has also been passed into the application then Prometheus will error during metrics gathering reporting that the metric was already collected with the same name and labels.\n\n## Metrics\n\nMetrics will be made available on port 8080 by default\nAn example of these metrics can be found in the `METRICS.md` markdown file in the root of this repository\n\n## Metadata\n[![](https://images.microbadger.com/badges/image/infinityworks/docker-hub-exporter.svg)](http://microbadger.com/images/infinityworks/docker-hub-exporter \"Get your own image badge on microbadger.com\") [![](https://images.microbadger.com/badges/version/infinityworks/docker-hub-exporter.svg)](http://microbadger.com/images/infinityworks/docker-hub-exporter \"Get your own version badge on microbadger.com\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityworks%2Fdocker-hub-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinityworks%2Fdocker-hub-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityworks%2Fdocker-hub-exporter/lists"}