Repository navigation
collector/diskstats: add device-mapper backing device info metric - #3676
Conversation
|
This is a great addition! Well needed! PV:s are critical to surface like this. +1 from me. |
48e8ac6 to
e59b259
Compare
|
@SuperQ - is there anything we need to do to get this into the exporter main ? |
|
@erik78se could you confirm the e2e check is green by running: |
| func (c *diskstatsCollector) updateDeviceMapperBackingDevices(ch chan<- prometheus.Metric, dev string) { | ||
| underlying, err := c.fs.SysBlockDeviceUnderlyingDevices(dev) | ||
| if err != nil { | ||
| if !os.IsNotExist(err) { |
There was a problem hiding this comment.
nit: IIRC other places we are following this style of validation.
| if !os.IsNotExist(err) { | |
| if errors.Is(err, os.ErrNotExist) |
6edfa71 to
785de74
Compare
@nicolastakashi I have updated the fixture so that |
785de74 to
9c95be2
Compare
|
@Maharacha can you fix CI? |
af6346c to
d7a6d33
Compare
I have added this d7a6d33 Can you approve workflows? |
Signed-off-by: Joakim Nyman <[email protected]>
Signed-off-by: Joakim Nyman <[email protected]>
…rics Signed-off-by: Joakim Nyman <[email protected]>
Signed-off-by: Joakim Nyman <[email protected]>
d7a6d33 to
a6446ce
Compare
…ng-device-info Signed-off-by: Joakim Nyman <[email protected]>
|
Looks like we have some conflicts with the device name dm-5 you added to some test fixtures. Could you address that? |
|
See test failures |
Signed-off-by: Joakim Nyman <[email protected]>
|
/workflow-approve |
…ng-device-info Signed-off-by: Joakim Nyman <[email protected]>
|
@nicolastakashi. Can we get this merged? |
The behavior of `node_cpu_frequency_hertz` has changed. There are two different sources of data for this metric. One from the `cpu` collector, one from the `cpufreq` collector. Due to historical feature migrations the `cpufreq` collector shares the same subsystem as the `cpu` collector. This caused conflicting data behavior. An attempt to fix this was introduced in #3318. This behavior has been reverted to the previous behavior in #3795. A new flag (`--collector.cpufreq.enable-cpufreq-prefix`) has been introduced that gives the `cpufreq` a dedicated metric name subsystem (`node_cpufreq_...`). This will likely be the default in v2. * [CHANGE] netstat: Use procfs parsers for netstat, snmp and snmp6 #3796 * [CHANGE] edac: Fix no data results #3863 * [CHANGE] nvme: Deprecate metric nvme_namespace_capacity_bytes #3899 * [FEATURE] Add tainted collector for /proc/sys/kernel/tainted #3745 * [FEATURE] Add resctrl collector #3797 * [ENHANCEMENT] netstat: Add new FreeBSD metrics #3334 * [ENHANCEMENT] Add `chip` label to DRM metrics #3572 * [ENHANCEMENT] diskstats: add device-mapper backing device info metric #3676 * [ENHANCEMENT] textfile: support UTF-8 metric and label names #3729 * [ENHANCEMENT] ksmd: add general_profit metric #3778 #3894 * [BUGFIX] edac: Fix printf-style formatting in slog call #3759 * [BUGFIX] fibre_channel: fix crash when attempting to dereference invalid counters #3573 * [BUGFIX] thermal: Fix collecting Darwin temperatures without CPU power status #3767 * [BUGFIX] fibrechannel: Fix for ppc64le #3769 * [BUGFIX] cpu: Revert dup cpu frequency, add node_cpufreq flag #3795 * [BUGFIX] infiniband: skip sysfs reads for excluded devices #3824 * [BUGFIX] bcache: Fix btree_read_average_duration_seconds unit #3828 Signed-off-by: Ben Kochie <[email protected]>
We have this use case where we need to see what device is backing a device mapper.
Example:
Together with the already existing metric
node_disk_device_mapper_info, it's now possible to map the backing devices to volume groups.