docker_stats_exporter icon indicating copy to clipboard operation
docker_stats_exporter copied to clipboard

Fea/specify container to be collected

Open bugre opened this issue 1 year ago • 3 comments

Add option to filter containers by 'name' attribute that will get stats collected.

bugre avatar Sep 13 '23 10:09 bugre

Hi @bugre

Thank you for the PR, but I think I'm going to archive this repo as it's gotten quite out of date. Feel free to fork it if it fits your needs.

Thanks.

wywywywy avatar Sep 13 '23 12:09 wywywywy

Hi @wywywywy , not a problem. I've already forked and made the changes locally, but thought of sharing if it could help someone. Thanks for letting me know. If you don't mind asking, is there a better way of getting the docker stats of a container into prometheus as of today? (not in a k8s or swarm or other orchestration environment, but running a few containers manually? (aside from use/try directly the cgroups metrics)

bugre avatar Sep 13 '23 13:09 bugre

If you don't mind asking, is there a better way of getting the docker stats of a container into prometheus as of today? (not in a k8s or swarm or other orchestration environment, but running a few containers manually? (aside from use/try directly the cgroups metrics)

I had a look a while ago, and to be honest I didn't find any lightweight exporter similar to this one unfortunately. :(

So this is still useful if someone takes the time to maintain it properly.

wywywywy avatar Sep 14 '23 14:09 wywywywy