docker-hub-exporter
docker-hub-exporter copied to clipboard
Organization data started failing on June 21st around 11:07 GMT
Hey there, thanks for this handy tool! According to my prometheus, all my docker_hub_image_pulls_total
metrics dropped off a few days ago. I did reviewed the README and did a few tests, and it seems like explicitly specifying images produces the metric, but organizations don't get picked up. I assume this is because docker hub changed something. I haven't had time to look into this, might be something super trivial, but I tested on my laptop with the example command in the README and confirmed this behavior.
It's fixed in #14
The project looks a bit outdated I wasn't be able to build it. It would be really good if maintainers could accept PR #14 and build new version. Meanwhile I took the core of the service and wrapped it with modern tools golang:1.18
, go modules and alpine:3.16.0
it uses a slightly different envs and options and of course new tag namespace
instead of user
.
I'm going to make a branch in own repo to make fully compatible version for thouse who don't want change a lot prometheus/grafana settings. If the authors don't mind.
Hit the same issue. If you have an image built somewhere let me know and I'll give it a test run.
@travisghansen
Check it out artemkaxboy/docker-hub-exporter
Please, make sure you do not pass multiple values in one command option if you use command options for namespaces/images.
DON'T
--namespace="artemkaxboy,nginx"
--image="infinityworks/docker-hub-exporter,infinityworks/build-tools"
DO
--namespace="artemkaxboy" --namespace="nginx"
--image="infinityworks/docker-hub-exporter" --image="infinityworks/build-tools"
And I'm still working on fully compatible version
Still possible to do multiple namespaces using env var?
Still possible to do multiple namespaces using env var?
Yes, for envs you use plural noun and a comma to divide:
--env IMAGES="infinityworks/docker-hub-exporter,infinityworks/build-tools"
--env NAMESPACES="artemkaxboy,nginx"
I've finally prepared a fully compatible docker image which can be used for super easy migration. Feel free to use it: artemkaxboy/docker-hub-exporter:legacy
Looks like everything is working perfectly without any changes using your legacy
tag. Thanks!
Looks like everything is working perfectly without any changes using your
legacy
tag. Thanks!
Thanks for testing!