I just tried to reproduce this with a collection from the demo node like below focusing on these metrics:
# HELP node_filesystem_files Filesystem total file nodes.
# TYPE node_filesystem_files gauge
node_filesystem_files{device="/dev/vda1",fstype="ext4",mountpoint="/"} 3.2256e+06
node_filesystem_files{device="/dev/vda15",fstype="vfat",mountpoint="/boot/efi"} 0
node_filesystem_files{device="lxcfs",fstype="fuse.lxcfs",mountpoint="/var/lib/lxcfs"} 0
node_filesystem_files{device="tmpfs",fstype="tmpfs",mountpoint="/run"} 126146
node_filesystem_files{device="tmpfs",fstype="tmpfs",mountpoint="/run/lock"} 126146
So if i group by fstype
i’d expect 4.
jobs:
- name: node_exporter_demo_fstype
url: 'https://node.demo.do.prometheus.io/metrics'
selector:
allow:
- node_filesystem_files
group:
- selector: node_filesystem_files
by_label: fstype
In the charts endpoint of netdata i see 5 not 4 (so in line with same issue you have @crb )
@ilyam8 would i be right in expecting these two to be one chart? eg i want netdata to ignore the device
and mountpoint
labels.
prometheus_node_exporter_demo_fstype.node_filesystem_files-device=tmpfs-fstype=tmpfs-mountpoint=/run
prometheus_node_exporter_demo_fstype.node_filesystem_files-device=tmpfs-fstype=tmpfs-mountpoint=/run/lock
"prometheus_node_exporter_demo_fstype.node_filesystem_files-device=/dev/vda1-fstype=ext4-mountpoint=/": {
"id": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device=/dev/vda1-fstype=ext4-mountpoint=/",
"name": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device__dev_vda1-fstype_ext4-mountpoint__",
"type": "prometheus_node_exporter_demo_fstype",
"family": "node_filesystem",
"context": "prometheus.node_exporter_demo_fstype.node_filesystem_files",
"title": "Filesystem total file nodes (prometheus_node_exporter_demo_fstype.node_filesystem_files-device__dev_vda1-fstype_ext4-mountpoint__)",
"priority": 70000,
"plugin": "go.d",
"module": "prometheus",
"units": "files",
"data_url": "/api/v1/data?chart=prometheus_node_exporter_demo_fstype.node_filesystem_files-device__dev_vda1-fstype_ext4-mountpoint__",
"chart_type": "line",
"duration": 10,
"first_entry": 0,
"last_entry": 0,
"update_every": 10,
"dimensions": {
"node_filesystem_files": { "name": "node_filesystem_files" }
},
"chart_variables": {
},
"green": null,
"red": null,
"alarms": {
},
"chart_labels": {
"_collect_plugin":"go.d",
"_collect_module":"prometheus",
"device":"/dev/vda1",
"fstype":"ext4",
"mountpoint":"/",
"_collect_job":"node_exporter_demo_fstype"
},
"functions": {
}
},
"prometheus_node_exporter_demo_fstype.node_filesystem_files-device=/dev/vda15-fstype=vfat-mountpoint=/boot/efi": {
"id": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device=/dev/vda15-fstype=vfat-mountpoint=/boot/efi",
"name": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device__dev_vda15-fstype_vfat-mountpoint__boot_efi",
"type": "prometheus_node_exporter_demo_fstype",
"family": "node_filesystem",
"context": "prometheus.node_exporter_demo_fstype.node_filesystem_files",
"title": "Filesystem total file nodes (prometheus_node_exporter_demo_fstype.node_filesystem_files-device__dev_vda15-fstype_vfat-mountpoint__boot_efi)",
"priority": 70000,
"plugin": "go.d",
"module": "prometheus",
"units": "files",
"data_url": "/api/v1/data?chart=prometheus_node_exporter_demo_fstype.node_filesystem_files-device__dev_vda15-fstype_vfat-mountpoint__boot_efi",
"chart_type": "line",
"duration": 10,
"first_entry": 0,
"last_entry": 0,
"update_every": 10,
"dimensions": {
"node_filesystem_files": { "name": "node_filesystem_files" }
},
"chart_variables": {
},
"green": null,
"red": null,
"alarms": {
},
"chart_labels": {
"_collect_plugin":"go.d",
"_collect_module":"prometheus",
"device":"/dev/vda15",
"fstype":"vfat",
"mountpoint":"/boot/efi",
"_collect_job":"node_exporter_demo_fstype"
},
"functions": {
}
},
"prometheus_node_exporter_demo_fstype.node_filesystem_files-device=lxcfs-fstype=fuse.lxcfs-mountpoint=/var/lib/lxcfs": {
"id": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device=lxcfs-fstype=fuse.lxcfs-mountpoint=/var/lib/lxcfs",
"name": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device_lxcfs-fstype_fuse.lxcfs-mountpoint__var_lib_lxcfs",
"type": "prometheus_node_exporter_demo_fstype",
"family": "node_filesystem",
"context": "prometheus.node_exporter_demo_fstype.node_filesystem_files",
"title": "Filesystem total file nodes (prometheus_node_exporter_demo_fstype.node_filesystem_files-device_lxcfs-fstype_fuse.lxcfs-mountpoint__var_lib_lxcfs)",
"priority": 70000,
"plugin": "go.d",
"module": "prometheus",
"units": "files",
"data_url": "/api/v1/data?chart=prometheus_node_exporter_demo_fstype.node_filesystem_files-device_lxcfs-fstype_fuse.lxcfs-mountpoint__var_lib_lxcfs",
"chart_type": "line",
"duration": 10,
"first_entry": 0,
"last_entry": 0,
"update_every": 10,
"dimensions": {
"node_filesystem_files": { "name": "node_filesystem_files" }
},
"chart_variables": {
},
"green": null,
"red": null,
"alarms": {
},
"chart_labels": {
"_collect_plugin":"go.d",
"_collect_module":"prometheus",
"device":"lxcfs",
"fstype":"fuse.lxcfs",
"mountpoint":"/var/lib/lxcfs",
"_collect_job":"node_exporter_demo_fstype"
},
"functions": {
}
},
"prometheus_node_exporter_demo_fstype.node_filesystem_files-device=tmpfs-fstype=tmpfs-mountpoint=/run": {
"id": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device=tmpfs-fstype=tmpfs-mountpoint=/run",
"name": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device_tmpfs-fstype_tmpfs-mountpoint__run",
"type": "prometheus_node_exporter_demo_fstype",
"family": "node_filesystem",
"context": "prometheus.node_exporter_demo_fstype.node_filesystem_files",
"title": "Filesystem total file nodes (prometheus_node_exporter_demo_fstype.node_filesystem_files-device_tmpfs-fstype_tmpfs-mountpoint__run)",
"priority": 70000,
"plugin": "go.d",
"module": "prometheus",
"units": "files",
"data_url": "/api/v1/data?chart=prometheus_node_exporter_demo_fstype.node_filesystem_files-device_tmpfs-fstype_tmpfs-mountpoint__run",
"chart_type": "line",
"duration": 10,
"first_entry": 0,
"last_entry": 0,
"update_every": 10,
"dimensions": {
"node_filesystem_files": { "name": "node_filesystem_files" }
},
"chart_variables": {
},
"green": null,
"red": null,
"alarms": {
},
"chart_labels": {
"_collect_plugin":"go.d",
"_collect_module":"prometheus",
"device":"tmpfs",
"fstype":"tmpfs",
"mountpoint":"/run",
"_collect_job":"node_exporter_demo_fstype"
},
"functions": {
}
},
"prometheus_node_exporter_demo_fstype.node_filesystem_files-device=tmpfs-fstype=tmpfs-mountpoint=/run/lock": {
"id": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device=tmpfs-fstype=tmpfs-mountpoint=/run/lock",
"name": "prometheus_node_exporter_demo_fstype.node_filesystem_files-device_tmpfs-fstype_tmpfs-mountpoint__run_lock",
"type": "prometheus_node_exporter_demo_fstype",
"family": "node_filesystem",
"context": "prometheus.node_exporter_demo_fstype.node_filesystem_files",
"title": "Filesystem total file nodes (prometheus_node_exporter_demo_fstype.node_filesystem_files-device_tmpfs-fstype_tmpfs-mountpoint__run_lock)",
"priority": 70000,
"plugin": "go.d",
"module": "prometheus",
"units": "files",
"data_url": "/api/v1/data?chart=prometheus_node_exporter_demo_fstype.node_filesystem_files-device_tmpfs-fstype_tmpfs-mountpoint__run_lock",
"chart_type": "line",
"duration": 10,
"first_entry": 0,
"last_entry": 0,
"update_every": 10,
"dimensions": {
"node_filesystem_files": { "name": "node_filesystem_files" }
},
"chart_variables": {
},
"green": null,
"red": null,
"alarms": {
},
"chart_labels": {
"_collect_plugin":"go.d",
"_collect_module":"prometheus",
"device":"tmpfs",
"fstype":"tmpfs",
"mountpoint":"/run/lock",
"_collect_job":"node_exporter_demo_fstype"
},
"functions": {
}
},