docker-hub-exporter icon indicating copy to clipboard operation
docker-hub-exporter copied to clipboard

Organization data started failing on June 21st around 11:07 GMT

Open thefinn93 opened this issue 2 years ago • 9 comments

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.

thefinn93 avatar Jun 23 '22 05:06 thefinn93

It's fixed in #14

artemkaxboy avatar Jun 23 '22 17:06 artemkaxboy

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.

artemkaxboy avatar Jun 24 '22 18:06 artemkaxboy

Hit the same issue. If you have an image built somewhere let me know and I'll give it a test run.

travisghansen avatar Jun 26 '22 02:06 travisghansen

@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

artemkaxboy avatar Jun 26 '22 06:06 artemkaxboy

Still possible to do multiple namespaces using env var?

travisghansen avatar Jun 26 '22 06:06 travisghansen

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"

artemkaxboy avatar Jun 26 '22 06:06 artemkaxboy

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

artemkaxboy avatar Jun 26 '22 14:06 artemkaxboy

Looks like everything is working perfectly without any changes using your legacy tag. Thanks!

travisghansen avatar Jun 27 '22 03:06 travisghansen

Looks like everything is working perfectly without any changes using your legacy tag. Thanks!

Thanks for testing!

artemkaxboy avatar Jun 27 '22 08:06 artemkaxboy