mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
Add mulitipathd_info text collector example (#1375)
multipathd_info is a script that exposes device mapper multipathing metrics from multipathd daemon. Signed-off-by: Saket Sinha <saket.sinha@cloud.ionos.com>
This commit is contained in:
parent
3108a50fb6
commit
e972e38b42
9
text_collector_examples/multipathd_info
Executable file
9
text_collector_examples/multipathd_info
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Description: Expose device mapper multipathing metrics from multipathd.
|
||||
#
|
||||
# Author: Saket Sinha <saket.sinha@cloud.ionos.com>
|
||||
|
||||
echo '# HELP node_dmpath_info State info for dev-mapper path'
|
||||
echo '# TYPE node_dmpath_info gauge'
|
||||
/sbin/multipathd show paths format '%d %t %T' | /usr/bin/awk '{ if ( NR > 1) {print "node_dmpath_info{device=\""$1"\"," "dm_path_state=\""$2"\"," "path_state=\""$3"\"}" " 1"}}'
|
Loading…
Reference in a new issue