stefanprodan / dockprom

Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
MIT License
6.02k stars 1.72k forks source link

container disk usage so high #277

Open ukshark opened 1 year ago

ukshark commented 1 year ago

hi, all is good apart from container disk usage. if i do this is promethrus: sum(container_fs_usage_bytes)

i get:

{} | 184907225694208

the host only hase 500G , and this comes out at 168TiB

Any clues?

ukshark commented 1 year ago

I worked out cAdvisor was counting external NFS mounts from my NAS. Anyway of stopping it counting it as container fs usage?

nightah commented 1 year ago

You can exclude the location(s) in the respective queries.

chintanp commented 1 year ago

There is a lot of repetition when I check this expression container_fs_usage_bytes in Prometheus. Not sure how to reduce it down. I think either the query has to change or a more refined filter criteria needs to be used. I have one other container besides the monitoring containers.