Ò»ÎĶÁ¶®ÈçºÎÔÚKubernetesÉÏÇáËÉʵÏÖ×Ô¶¯»¯²¿ÊðPrometheus(5)
È»ºóɾ³ý kube-proxy µÄ Pod£¬ÈÃËüÖØÆô¼´¿É¿´µ½ÒÑÕý³£×¥È¡¡£ Ó¦Óà ÖÁ´Ë£¬Prometheus µÄ·þÎñ¶Ë¾ÍÈ«²¿²¿ÊðÍê³ÉÁË¡£½ÓÏÂÀ´¾ÍÊǸù¾Ýʵ¼ÊÒµÎñ²¿ÊðÏàÓ¦µÄ Exporter£¬ServiceMonitor ºÍ PrometheusRule ÁË¡£¹Ù·½ºÍÉçÇøÓдóÁ¿ÏÖ³ÉµÄ Exporters ¿É¹©Ê¹Óã¬Èç¹ûÓÐÌØÊâÐèÇóµÄÒ²¿ÉÒԲο¼ÕâÀï×ÔÐпª·¢¡£ ½ÓÏÂÀ´ÎÒÃǽ²½²ÈçºÎ¿ìËÙ¼¯³É Prometheus ¼à¿ØºÍ±¨¾¯¡£ ÎÒÃÇ֮ǰÌáµ½¹ý Operator ͨ¹ý CRD µÄ·½Ê½ÌṩÁ˺ܶಿÊð·½ÃæµÄ×Ô¶¯»¯£¬Prometheus-Operator ¾ÍÌṩÁËËĸö CRD£¬·Ö±ðÊÇ
Prometheus ºÍ Alertmanager CRD Ö÷ÒªÊÇ֮ǰ²¿Êð½×¶Î¹Ø×¢µÄ£¬ÔÚ·þÎñÓ¦Óý׶Σ¬ÎÒÃÇÖ÷ÒªÊÇ´´½¨¸÷¸ö ServiceMonitor ºÍ PrometheusRule À´ÅäÖ÷þÎñ¶Ë¡£ Prometheus-Operator ĬÈÏ»á°ïÎÒÃÇ×¢²áÏà¹Ø×é¼þµÄץȡĿ±ê£¬ÈçÏÂͼËùʾ ÎÒÃÇÒª¶¨ÒåÆäËûµÄץȡĿ±ê£¬Ê×ÏÈÀ´´´½¨ÁËÒ»¸ö ServiceMonitor ץȡÎÒÃDz¿ÊðµÄ InfluxDB µÄÖ¸±ê
ÎÒÃÇÔÚÏîÄ¿Öд´½¨ÁËÒ»¸ö Chart Ä£°æ£¨ÔÚ charts/scrape-targets/ Ŀ¼£©£¬Äܹ»¿ìËٵĴ´½¨ ServiceMonitor£¬ÌṩÏÂÃæµÄÅäÖÃÎļþ influxdb.yaml
£¨±à¼£ºASPÕ¾³¤Íø£© |