内容简介:在Prometheus 提供了验证规则文件的工具:TODO
下载
在 下载 页面,下载最新版本的 AlertManager 分发包,解压缩。
规则
Prometheus 提供了验证规则文件的工具:
./promtool check rules rules/node.yml
配置
TODO
启停服务
启动服务脚本 start-am.sh 文件:
#/bin/sh
pid_file=`dirname $0`/alertmanager.pid
if [ -f "$pid_file" ] ; then
echo "AlertManager is still running, please stop first."
exit
fi
nohup ./alertmanager --config.file=alertmanager.yml > alertmanager.log 2>&1 &
echo $! > alertmanager.pid
停止服务脚本 stop-am.sh 文件:
pidfile=`dirname $0`/alertmanager.pid
if [ ! -f "$pidfile" ] ; then
echo "AlertManager Already Stopped."
exit
fi
pid=`cat $pidfile`
echo -e "`hostname` Stopping AlertManager $pid ... "
kill $pid
if [ -f "$pidfile" ] ; then
rm $pidfile
exit
fi
参考
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
常用算法深入学习实录
张子言 / 电子工业出版社 / 2013-10 / 89.00元
对于任何一门编程语言来说,算法都是程序的“灵魂”。正是因为算法如此重要,所以笔者精心编写了本书,希望通过书中的内容引领广大读者一起探讨学习算法的奥秘,带领广大读者真正步入程序开发的高级世界。 本书共分15章,循序渐进、由浅入深地详细讲解算法的核心内容,并通过具体实例的实现过程演练各个知识点的具体用法。本书首先详细讲解算法的基础知识,剖析了将算法称为“程序灵魂”的原因。然后详细讲解算法技术的核......一起来看看 《常用算法深入学习实录》 这本书的介绍吧!