{"id":2472,"date":"2023-12-11T21:35:54","date_gmt":"2023-12-11T13:35:54","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=2472"},"modified":"2023-12-11T21:35:54","modified_gmt":"2023-12-11T13:35:54","slug":"prometheus%e6%9c%89%e5%93%aa%e4%ba%9b%e7%bb%84%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/2472.html","title":{"rendered":"Prometheus\u6709\u54ea\u4e9b\u7ec4\u4ef6"},"content":{"rendered":"\n\t\t\t\t<![CDATA[\n<p>Prometheus \u662f\u4e00\u79cd\u5f00\u6e90\u7684\u76d1\u63a7\u548c\u62a5\u8b66\u7cfb\u7edf\uff0c\u5b83\u7531\u4e00\u7cfb\u5217\u7ec4\u4ef6\u7ec4\u6210\uff0c\u7528\u4e8e\u6536\u96c6\u3001\u5b58\u50a8\u548c\u5c55\u793a\u76d1\u63a7\u6570\u636e\u3002\u4e0b\u9762\u662f Prometheus \u7684\u4e3b\u8981\u7ec4\u4ef6\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Prometheus Server\uff1aPrometheus \u7684\u6838\u5fc3\u7ec4\u4ef6\uff0c\u8d1f\u8d23\u6536\u96c6\u548c\u5b58\u50a8\u76d1\u63a7\u6570\u636e\u3002\u5b83\u901a\u8fc7\u5b9a\u671f\u4ece\u5df2\u914d\u7f6e\u7684\u76ee\u6807\u4e2d\u6293\u53d6\u6307\u6807\u6570\u636e\uff0c\u5e76\u5b58\u50a8\u5728\u672c\u5730\u6570\u636e\u5e93\u4e2d\u3002<\/li><li>Exporters\uff1aExporters \u7528\u4e8e\u5c06\u5404\u79cd\u6570\u636e\u6e90\u8f6c\u6362\u4e3a Prometheus \u53ef\u4ee5\u7406\u89e3\u7684\u6307\u6807\u6570\u636e\u683c\u5f0f\u3002Prometheus \u652f\u6301\u8bb8\u591a\u5185\u7f6e\u7684 Exporters\uff0c\u5982 Node Exporter\uff08\u7528\u4e8e\u76d1\u63a7\u7cfb\u7edf\u8d44\u6e90\uff09\u3001Blackbox Exporter\uff08\u7528\u4e8e\u7f51\u7edc\u63a2\u6d4b\uff09\u7b49\u3002\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49 Exporters \u6765\u9002\u914d\u81ea\u5df1\u7684\u76d1\u63a7\u76ee\u6807\u3002<\/li><li>Pushgateway\uff1aPushgateway \u5141\u8bb8\u4e34\u65f6\u6027\u7684\u6570\u636e\u63a8\u9001\u5230 Prometheus\uff0c\u7528\u4e8e\u4e00\u4e9b\u65e0\u6cd5\u76f4\u63a5\u8bbf\u95ee\u7684\u77ed\u6682\u4efb\u52a1\u7684\u6307\u6807\u6570\u636e\u6536\u96c6\u3002<\/li><li>Grafana\uff1a\u867d\u7136 Grafana \u4e0d\u662f Prometheus \u7684\u5b98\u65b9\u7ec4\u4ef6\uff0c\u4f46\u5b83\u5e38\u5e38\u4e0e Prometheus \u4e00\u8d77\u4f7f\u7528\uff0c\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u548c\u62a5\u8868\u5c55\u793a\u3002Grafana \u63d0\u4f9b\u4e86\u76f4\u89c2\u7684\u754c\u9762\uff0c\u53ef\u4ee5\u4ece Prometheus \u4e2d\u67e5\u8be2\u5e76\u7ed8\u5236\u56fe\u8868\u3001\u4eea\u8868\u76d8\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u548c\u5206\u6790\u76d1\u63a7\u6570\u636e\u3002<\/li><\/ol>\n\n\n\n<p>\u9664\u4e86\u4e0a\u8ff0\u7684\u6838\u5fc3\u7ec4\u4ef6\u548c\u76f8\u5173\u5de5\u5177\u4e4b\u5916\uff0cPrometheus \u751f\u6001\u7cfb\u7edf\u8fd8\u5b58\u5728\u4e00\u4e9b\u6269\u5c55\u7ec4\u4ef6\u3001\u5e93\u548c\u5de5\u5177\uff0c\u7528\u4e8e\u589e\u5f3a Prometheus \u7684\u529f\u80fd\uff0c\u6bd4\u5982 Alertmanager\uff08\u7528\u4e8e\u544a\u8b66\u901a\u77e5\u7ba1\u7406\uff09\u3001PromQL\uff08Prometheus \u7684\u67e5\u8be2\u8bed\u8a00\uff09\u3001Prometheus Operator\uff08\u7528\u4e8e\u8fd0\u7ef4\u7ba1\u7406\uff09\u3001Prometheus Alert Templates\uff08\u7528\u4e8e\u544a\u8b66\u6a21\u677f\uff09\u3001Prometheus Federation\uff08\u7528\u4e8e\u591a\u5b9e\u4f8b\u5206\u5e03\u5f0f\u76d1\u63a7\uff09\u7b49\u3002<\/p>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cPrometheus \u662f\u4e00\u4e2a\u6a21\u5757\u5316\u7684\u7cfb\u7edf\uff0c\u5e76\u4e14\u53ef\u4ee5\u4e0e\u5176\u4ed6\u5de5\u5177\u548c\u7ec4\u4ef6\u8fdb\u884c\u96c6\u6210\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u6269\u5c55\u5176\u529f\u80fd\u548c\u7075\u6d3b\u6027\u3002DeepFlow\u53ef\u4f5c\u4e3a Prometheus\u3001OpenTelemetry\u3001SkyWalking\u3001Pyroscope \u7684\u5b58\u50a8\u540e\u7aef\uff0c\u4ea6\u53ef\u63d0\u4f9b SQL\u3001PromQL\u3001OTLP \u7b49\u6570\u636e\u63a5\u53e3\u4f5c\u4e3a\u6d41\u884c\u6280\u672f\u6808\u7684\u6570\u636e\u6e90\u3002\u57fa\u4e8e\u9886\u5148\u7684 AutoTagging \u673a\u5236\uff0c\u81ea\u52a8\u4e3a\u6240\u6709\u89c2\u6d4b\u4fe1\u53f7\u6ce8\u5165\u7edf\u4e00\u6807\u7b7e\uff0c\u5305\u62ec\u4e91\u8d44\u6e90\u3001K8s \u5bb9\u5668\u8d44\u6e90\u3001K8s Label\/Annotation\u3001CMDB \u4e2d\u7684\u4e1a\u52a1\u5c5e\u6027\u7b49\uff0c\u6d88\u9664\u6570\u636e\u5b64\u5c9b\u3002<\/p>\n]]>\t\t","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-2472","post","type-post","status-publish","format-standard","hentry","category-product-news"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/2472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=2472"}],"version-history":[{"count":0,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/2472\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=2472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=2472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=2472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}