Browse Source

fix bug

master
xiaoz 3 years ago
parent
commit
77912d5835
  1. 3
      node_exporter.sh

3
node_exporter.sh

@ -32,7 +32,7 @@ depend(){
then then
INSTANCE=$(echo $HOSTNAME)_${myip} INSTANCE=$(echo $HOSTNAME)_${myip}
else else
INSTANCE=${HOSTNAME}_${myip} INSTANCE=${INSTANCE}_${myip}
fi fi
} }
#下载 #下载
@ -101,6 +101,7 @@ install_success(){
echo "----------------------------" echo "----------------------------"
#推送数据到普罗米修斯以自动注册 #推送数据到普罗米修斯以自动注册
curl -u 'xiaoz:HAKrmCM6' -X POST -d "instance=${INSTANCE}" https://prometheus.rss.ink/api/v1/push_data curl -u 'xiaoz:HAKrmCM6' -X POST -d "instance=${INSTANCE}" https://prometheus.rss.ink/api/v1/push_data
echo "\n"
echo "Installation is complete, please visit http://${myip}:29100" echo "Installation is complete, please visit http://${myip}:29100"
} }

Loading…
Cancel
Save