We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9466c3 commit 2aac1fbCopy full SHA for 2aac1fb
iscsi_names.sh
@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+
3
+InitiatorName=$(grep "^InitiatorName=" /etc/iscsi/initiatorname.iscsi | cut -d'=' -f2)
4
5
+echo "# HELP node_iscsi_initiator_name name of the nodes iSCSI initiator"
6
+echo "# TYPE node_iscsi_initiator_name gauge"
7
+echo 'node_iscsi_initiator_name{initiator_name="'"${InitiatorName}"'"}1'
0 commit comments