I have a Proxmox server and 4 containers inside. This server has 7 disks connected to it.
I am running node_exporter on all of the containers to get an overview on what's happening inside each container, however there are some metrics related to hardware not used by the container. For example, this is the output of running curl localhost:9100/metrics:
It includes information on every disk I have installed on an underlying server, despite the container using only one of these disks (nvme0n1 here).
The issue is that I have node_exporter in all of my containers and Proxmox server as well, so if one disk is slow, I will get 5 alerts from Prometheus, with the same device but for each of these containers.
Is there any way to limit node_exporter to only return data about the hardware that is actually used by the container?
I am running node_exporter on all of the containers to get an overview on what's happening inside each container, however there are some metrics related to hardware not used by the container. For example, this is the output of running curl localhost:9100/metrics:
Code:
# HELP node_disk_writes_completed_total The total number of writes completed successfully.
# TYPE node_disk_writes_completed_total counter
node_disk_writes_completed_total{device="dm-0"} 7.170327e+06
node_disk_writes_completed_total{device="dm-1"} 768088
node_disk_writes_completed_total{device="dm-2"} 437969
node_disk_writes_completed_total{device="dm-3"} 719625
node_disk_writes_completed_total{device="nvme0n1"} 3.193654e+06
node_disk_writes_completed_total{device="sda"} 98545
node_disk_writes_completed_total{device="sdb"} 99308
node_disk_writes_completed_total{device="sdc"} 314856
node_disk_writes_completed_total{device="sdd"} 343948
node_disk_writes_completed_total{device="sde"} 276031
node_disk_writes_completed_total{device="sdf"} 2138
It includes information on every disk I have installed on an underlying server, despite the container using only one of these disks (nvme0n1 here).
The issue is that I have node_exporter in all of my containers and Proxmox server as well, so if one disk is slow, I will get 5 alerts from Prometheus, with the same device but for each of these containers.
Is there any way to limit node_exporter to only return data about the hardware that is actually used by the container?