1 Star 0 Fork 1

Serialt/node-exporter-textfile-collector-scripts

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
multipathd_info 417 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/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...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/serialt/node-exporter-textfile-collector-scripts.git
git@gitee.com:serialt/node-exporter-textfile-collector-scripts.git
serialt
node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts
master

搜索帮助