Node exporter does not provide per container metrics, it looks at the whole node. This is sometimes difficult from inside a container, thus the warning.
For metrics about containers, check out cAdvisor: https://github.com/google/cadvisor In Prometheus it is common to have metrics broken out by labels. For example, the CPU metrics in node exporter are all per CPU core, and we expect you to aggregate them into whichever form you need. Can you share your query and what the output is, especially what labels it has? /MR On Fri, Nov 26, 2021, 18:50 Anne Schumann <[email protected]> wrote: > Hi there, > > I am new with Prometheus and I am facing issues with duplicate entries > visualised with grafana. Since I am new, I don't know whether this is a > bug (have seen several issues on GitHub) or an incorrect config. Please > provide me with a couple of hints. > > ### Host operating system: ubuntu > ### Are you running node_exporter in Docker? > Yes, despite the warning, I am using prometheus with docker-compose. > node-exporter is configured as a scraping job. I want to monitor a bunch of > docker containers that run on my host. > > ### What did you do that produced an error? > Queried CPU usage for my containers after restarting my containers on the > machine. > > ### What did you expect to see? > One value per container. > > ### What did you see instead? > Two metrics per container. > > Can anybody help? > > Cheers, > Anne > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/bdcf0544-d4b5-405c-befb-fcfb5599cd00n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/bdcf0544-d4b5-405c-befb-fcfb5599cd00n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAMV%3D_gZoMpnyc1O51aSDED5vZJM6LC3Sj%2BbrhBPz0Qb-K%3D3oZw%40mail.gmail.com.

