¼à¿Øϵͳ¿´Õâһƪ¾Í¹»ÁË£¡Zabbix¡¢PrometheusµÈ³£¼û¼à¿Ø½Ì³Ì
¼à¿ØË׳ơ¸µÚÈýÖ»ÑÛ¡¹£¬ÏÕЩÊÇÎÒÃÇÌìÌ춼»á´ò½»µÀµÄϵͳ£¬Ë×»°Ëµ£ºÎÞ¼à¿Ø¡¢²»ÔËά£¬¼à¿ØµÄְλ²»ÑÔ¶øÓ÷£¬ÓÈÆäÊÇÔÚÔËά×Ô¶¯»¯Ê±´ú£¬¹Å°åÔËά¡¢DevOps£¬Òà»òÊÇSRE£¬¼à¿Ø¶¼ÊÇÒ»Ïî±Ø±¸µÄÊÖÒÕ¡£
ÎÒÃÇÏÈÀ´ÊìϤһÏÂÖ÷Á÷µÄ¿ªÔ´¼à¿Øϵͳ£¬Zabbix¡¢Open-Falcon¡¢PrometheusµÈ£¬½ñÌì¾Í¼òÆÓÏÈÈÝһϡ¾Zabbix¡¿¡¾Prometheus¡¿¡¾Cacti¡¿¡¾Nagios¡¿¡¾Garafana¡¿µÈ5ÖÖÖ÷Á÷¼à¿Øϵͳ£¬ÒÔ±ã¸÷ÈËÑ¡ÐÍʱ²Î¿¼¡£ÁíÍ⻹¸ø¸÷ÈË·ÖÏíÕâÎåÖÖ¼à¿ØϵͳµÄѧϰ×ÊÁÏ£¬ ¸÷ÈË¿É×ÔÓÉѧÏο½å¼¡£
ËùÓÐ×ÊÁÏÒѾÕûÀí³ÉѹËõ°ü
¡¾×ÊÁÏÁìÈ¡·½·¨¼ûÎÄÄ©£¡¡¿
Prometheus
Prometheus£¨ÆÕÂÞÃ×ÐÞ˹£©ÊÇÓÉÇ°googleÔ±¹¤2015ÄêÕýʽÐû²¼µÄ¿ªÔ´¼à¿Øϵͳ£¬½ÓÄÉGoÓïÑÔ¿ª·¢¡£Ëü²»µ«ÓÐÒ»¸öºÜ¿áµÄÃû×Ö£¬Í¬Ê±ËüÓÐGoogleÓëk8sµÄÇ¿Á¦Ö§³Ö£¬¿ªÔ´ÉçÇøÒì³£»ð±¬¡£
Õâ·ÝPrometheus¹Ù·½ÖÐÎÄÎĵµ¼ÈÊʺÏС°×ÈëÃÅÒ²ÊʺÏÓÐÒ»¶¨»ù´¡µÄͬÑâ½ø½×ÌáÉý¡£Õâ·ÝÎĵµ¹²·ÖΪ7´ó²¿·Ö£¬´Ó×î»ù´¡µÄPrometheusÏÈÈÝ×°Öü°Æô¶¯½²Æ𣬶Բî±ð¼à¿ØϵͳµÄÓÅÈõµã¾ÙÐÐÁ˱ÈÕÕ£¬ÀýÈ磺GraphiteºÍOpenTSDB¡¢NagiosµÈµÈ¡£±ðµÄ»¹°üÀ¨Ò»Ð©ÊµÕ½ÏîÄ¿£ºGrafanaÍŽáPrometheus¾ÙÐпÉÊÓ»¯ ¡¢Instrumenting ÒÔ¼°±àд¿Í»§¿â¡¢ÍÆËÍ»³±§Ö¸±êµÈµÈ£¬×ÜÖ®¸É»õÊ®×㣡
µÚÒ»²¿·Ö£ºÑ§Ï°PrometheusµÄ×¼±¸ÊÂÇé
ʲôÊÇPrometheus£¿PrometheusµÄÊÊÓó¡¾°ÓÐÄÄЩ£¿PrometheusµÄ×°Öü°Æô¶¯£¬¼à¿Øϵͳ²úÆ·±ÈÕÕÏê½â£¬´Ë²¿·Ö»¹ÁгöÁËPrometheusѧϰõ辶ͼºÍ´Ê»ã×ÜÀÀ£¬²¢ÍƼöÁËһЩȨÍþµÄPrometheusѧϰǰÑÔ¡£
µÚ¶þ²¿·Ö£ºPrometheusÖ÷Òª¿´·¨Ïê½â
ÔÚÕⲿ·Ö£¬Ïêϸ¶ÔһЩ»ù´¡¿´·¨¾ÙÐÐÁËÏÈÈÝ£¬Í¨¹ýÕⲿ·ÖµÄѧϰ²Å»ªÕæÕýÏàʶPrometheusµÄÊÂÇéÔÀí¡£
metricsºÍlabels
Notation(·ûºÅ)
metricsÀàÐÍ
Gauge(ÕÉÁ¿Æ÷)
Histogram(Öù״ͼ)
JobsºÍInstances
µÚÈý²¿·Ö£ºPrometheusµÄÅÌÎʼ°Æô¶¯
½ÓÏÂÀ´×îÏÈÖð²½½øÈëʵսѵÁ·²¿·ÖÁË£¬µÚÈý´ó²¿·ÖÖ÷Òª½²ÁËPrometheusµÄÅÌÎʼ°Æô¶¯£¬»ù±¾¿´·¨+ʵսѵÁ·£¬ÕæÕý½øÈëʵս»·½Ú£¡
µÚËIJ¿·Ö£º¿ÉÊÓ»¯
Õⲿ·Ö×îÖ÷ÒªµÄÄÚÈݾÍÊÇʵÏÖPrometheusµÄ¿ÉÊÓ»¯£¬ÊÖ°ÑÊÖ½ÌÄãÔËÓÃGrafana½¨ÉèÒ»¸öPrometheus Graph ͼ±í £¡
*ÉùÃ÷£º×ÊÁÏÔ´ÓÚÍøÂ磬Ïê¼û¹ÙÍøhttps://prometheus.io/£¬PDF½ö×÷ѧϰÓë½»Á÷£¬ÇÖɾ
Zabbix
ZabbixÊÇÒ»¸öÆóÒµ¼¶µÄ¡¢¿ªÔ´µÄ¡¢ÂþÑÜʽµÄ¼à¿ØÌ×¼þ£¬±»ÓÃÀ´¼à¿ØIT»ù´¡ÉèÊ©µÄ¿ÉÓÃÐÔºÍÐÔÄÜ¡£
ÓëÒÔÉÏÖÖÖÖ¼à¿ØϵͳµÄ±ÈÕÕÀ´¿´£¬ZabbixÒÔÇ¿Ê¢ÓÅÊÆî¢íþȺÐÛ£¬Ëü¸»ºñµÄ¹¦Ð§¡¢¿ÉÀ©Õ¹µÄÄÜÁ¦¡¢¶þ´Î¿ª·¢µÄÄÜÁ¦ºÍ¼òÆÓÒ×ÓõÄÌص㣬ʹ¶ÁÕß´ó´ó½µµÍÁËѧϰ±¾Ç®£¬¿ÉÒÔÇáÇáËÉËɹ¹½¨ÊôÓÚ×Ô¼ºµÄ¼à¿Øϵͳ¡£
½ñÌìÙ÷ÏíµÄZabbixʵսÎĵµ£¬ËüÓÉÂí¸çÇ××ÔÕûÀí£¬Ò»¹²141Ò³¡£ÄÚÈÝÏ꾡£¬ÀíÂÛ+ʵս£¬¸É»õÂúÂú¡£ÐÅÍи÷ÈË¿´Íêºó»á¶ÔzabbixÓÐÔ½·¢ÉîÈëµÄÃ÷È·¡£
Ŀ¼£º
Ò»¡¢¼à¿ØЧÀÍÏÈÈÝ
¶þ¡¢zabbixÍýÏë¼°°²ÅÅ
Èý¡¢zabbix¼à¿ØÈëÃÅ»ù´¡
ËÄ¡¢zabbix proxy
Îå¡¢zabbix¼à¿Ø°¸Àýʵս
Áù¡¢zabbixÊÂÎñ֪ͨ»úÖÆ
Æß¡¢zabbix×Ô¶¯»¯ÔËά
¼à¿ØЧÀÍÏÈÈÝ
Âß¼½á¹¹
ÕûÌå½á¹¹
³£¼ûµÄ¼à¿Ø¼Æ»®
ZabbixʹÓó¡¾°¼°ÏµÍ³¸ÅÊö
zabbixÍýÏë¼°°²ÅÅ
ϵͳÇéÐÎ
apt/yum×°ÖÃ zabbix
±àÒë×°ÖÃzabbix
Web½çÃæÖÐÎIJ˵¥ÇéÐÎ
¼à¿ØÏîÓëÂÒÂë
zabbix serverÉèÖÃÎļþÏê½â
zabbix¼à¿ØÈëÃÅ»ù´¡
¼à¿Ølinuxϵͳ
¼à¿Øtomcat
zabbix ×Ô¶¯Óë±»¶¯¼à¿Øģʽ
zabbix¼à¿Ø°¸Àýʵս
¼à¿ØLinux TCPÅþÁ¬×´Ì¬
¼à¿Ømemcache
¼à¿ØRedis
¼à¿ØNginx
SNMP¼à¿Ø
¼à¿ØMySQL
×Ô½ç˵¶Ë¿ÚºÍÀú³Ì¼à¿Ø
¹ÊÕÏ×ÔÖÎÓú¹¦Ð§
grafanaͼÐÎչʾ
×Ô½ç˵»ù´¡¼à¿ØÄ£°å
ÍŽápyhton¾ç±¾¼à¿Ø°¸Àý
zabbix×Ô¶¯»¯ÔËά
Zabbix AgentÅúÁ¿°²ÅÅ
Zabbix APIÌí¼ÓÖ÷»ú
Zabbix ¶¯Ì¬·¢Ã÷Ö÷»ú
Cacti
CactiÊÇÒ»Ì×»ùÓÚPHP,MySQL,SNMP¼°RRDTool¿ª·¢µÄÍøÂçÁ÷Á¿¼à²âͼÐÎÆÊÎö¹¤¾ß¡£¼òÆÓµÄ˵Cacti¾ÍÊÇÒ»¸öPHP³ÌÐò¡£cactiÊǺÜÀϵÄÒ»¿î¼à¿Ø¹¤¾ßÁË£¬×Åʵ˵ËüÊÇÒ»¿îÁ÷Á¿¼à¿Ø¹¤¾ß¸üºÏÊÊ£¬¶ÔÁ÷Á¿¼à¿Ø½ÏÁ¿¾«×¼£¬µ«ÈõµãÐí¶à£¬³öͼǷÔÃÄ¿£¬²»Ö§³ÖÂþÑÜʽ¡£
¹ØÓÚCacti¼à¿Øϵͳ£¬½ñÌìÙ÷ÏíÒ»·ÝʹÓÃÊֲᡣ°üÀ¨¡¾Ê¹ÓÃÄ£°åÌí¼ÓÏìÓ¦Ö÷»úµÄ»ù±¾¼à¿ØÏî¡¿¡¾×Ô½ç˵¾ç±¾µÄÌí¼ÓÒÔ¼°¼à¿Ø¡¿µÈÄÚÈÝ¡£
*ÉùÃ÷£º
×ÊÁÏÔ´ÓÚÍøÂ磬
PDF½ö×÷ѧϰÓë½»Á÷£¬ÇÖɾ
Nagios
NagiosÊÇÒ»¿î¿ªÔ´µÄÃâ·ÑÍøÂç¼àÊÓ¹¤¾ß£¬ÄÜÓÐÓüà¿ØWindows¡¢LinuxºÍUnixµÄÖ÷»ú״̬£¬½»Á÷»ú·ÓÉÆ÷µÈÍøÂç×°±¸£¬´òÓ¡»úµÈ¡£
Nagios¼ò½é£»NagiosÊÂÇéÔÀí£»NagiosʵÑéÇéÐΡ¢×°Öã»NagiosÉèÖã»NagiosÆô¶¯Óë×èÖ¹£»NagiosÉó²éÆðÔ´ÉèÖÃÇéÐΣ»Ê¹ÓÃNRPE¼à¿ØLinuxÉϵġ°ÍâµØÐÅÏ¢µÈ¡£
*ÉùÃ÷£º
×ÊÁÏÔ´ÓÚÍøÂç
£¬PDF½ö×÷ѧϰÓë½»Á÷£¬ÇÖɾ
Garafana
ÕâÊÇһλ´óÀÐÔÚʹÓÃGrafanaµÄÀú³ÌÖÐ×ܽáµÄÌõ¼Ç£¬Ç¿ÁÒÍƼöÔĶÁѧϰ£¡
°üÀ¨³õѧÕßÔÚѧϰÀú³ÌÖпÉÄÜÓöµ½µÄÖÖÖÖÎÊÌ⣬ÍŽá×ÔÉíµÄÌå»á×ܽáÁËÒ»ÏÂGrafana2.1.3µÄʹÓã¬Ï£Íû¿ÉÒÔÓÐÖúÓÚ¸÷È˵ÄʹÓá£
*ÉùÃ÷£º
×ÊÁÏÔ´ÓÚÍøÂ磬PDF½öÓÃÓÚѧϰ½»Á÷£¬ÇÖɾ
ÒÔÉϾÍÊǼà¿Øϵͳ¿´Õâһƪ¾Í¹»ÁË£¡Zabbix¡¢PrometheusµÈ³£¼û¼à¿Ø½Ì³ÌµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡