{"id":14185,"date":"2024-10-11T11:04:57","date_gmt":"2024-10-11T03:04:57","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=14185"},"modified":"2024-10-11T11:04:57","modified_gmt":"2024-10-11T03:04:57","slug":"%e8%b5%b0%e8%bf%9bprometheus%e7%9a%84%e7%a5%9e%e7%a7%98%e4%bc%a0%e8%af%b4%ef%bc%9a%e9%a2%86%e7%95%a5%e5%8f%a4%e8%80%81%e6%99%ba%e6%85%a7%e7%9a%84%e9%ad%85%e5%8a%9b","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/14185.html","title":{"rendered":"\u8d70\u8fdbPrometheus\u7684\u795e\u79d8\u4f20\u8bf4\uff1a\u9886\u7565\u53e4\u8001\u667a\u6167\u7684\u9b45\u529b"},"content":{"rendered":"<p>\t\t\t\t<![CDATA[\n\n<p>\u5728\u5f53\u4eca\u6570\u5b57\u5316\u7684\u65f6\u4ee3\uff0c\u7f51\u7edc\u6d41\u91cf\u5982\u540c\u65e0\u5f62\u7684\u4fe1\u606f\u6d41\u5728\u5168\u7403\u7684\u7f51\u7edc\u67b6\u6784\u4e2d\u7a7f\u68ad\u3002\u5bf9\u4e8e\u4f01\u4e1a\u548c\u7ec4\u7ec7\u800c\u8a00\uff0c\u6709\u6548\u5730\u91c7\u96c6\u548c\u5206\u53d1\u7f51\u7edc\u6d41\u91cf\u6570\u636e\u6210\u4e3a\u4e86\u6d1e\u5bdf\u4e1a\u52a1\u8fd0\u884c\u72b6\u51b5\u3001\u4fdd\u969c\u7f51\u7edc\u5b89\u5168\u3001\u4f18\u5316\u670d\u52a1\u8d28\u91cf\u7684\u5173\u952e\u6240\u5728\u3002\u800c\u5728\u8fd9\u4e2a\u9886\u57df\u4e2d\uff0c\u4e91\u6749\u7f51\u7edc\u4ee5\u5176\u5353\u8d8a\u7684\u6280\u672f\u548c\u89e3\u51b3\u65b9\u6848\uff0c\u4e3a\u6211\u4eec\u63ed\u5f00\u4e86<a href=\"https:\/\/www.yunshan.net\" target=\"_blank\" style=\"color:blue\" rel=\"noopener noreferrer\">\u7f51\u7edc\u6d41\u91cf\u91c7\u96c6<\/a>\u5206\u53d1\u7684\u795e\u79d8\u9762\u7eb1\uff0c\u5c55\u73b0\u4e86\u53e4\u8001\u667a\u6167\u5728\u73b0\u4ee3\u79d1\u6280\u4e2d\u7684\u5d2d\u65b0\u9b45\u529b\u3002<\/p>\n\n\n\n\n<p><a href=\"https:\/\/www.yunshan.net\" target=\"_blank\" style=\"color:blue\" rel=\"noopener noreferrer\">\u7f51\u7edc\u6d41\u91cf\u91c7\u96c6<\/a>\uff0c\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u662f\u83b7\u53d6\u7f51\u7edc\u4e2d\u4f20\u8f93\u7684\u6570\u636e\u4fe1\u606f\u3002\u8fd9\u770b\u4f3c\u7b80\u5355\u7684\u8fc7\u7a0b\uff0c\u5b9e\u5219\u8574\u542b\u7740\u590d\u6742\u7684\u6280\u672f\u6311\u6218\u3002\u9996\u5148\uff0c\u8981\u4ece\u6d77\u91cf\u7684\u7f51\u7edc\u6570\u636e\u4e2d\u51c6\u786e\u6293\u53d6\u6240\u9700\u7684\u6d41\u91cf\uff0c\u9700\u8981\u9ad8\u7cbe\u5ea6\u7684\u7b5b\u9009\u548c\u8bc6\u522b\u80fd\u529b\u3002\u4e91\u6749\u7f51\u7edc\u51ed\u501f\u5176\u5148\u8fdb\u7684\u7b97\u6cd5\u548c\u6df1\u5ea6\u5305\u68c0\u6d4b\u6280\u672f\uff0c\u80fd\u591f\u7cbe\u51c6\u5730\u8bc6\u522b\u5404\u79cd\u5e94\u7528\u534f\u8bae\u548c\u6d41\u91cf\u7c7b\u578b\uff0c\u65e0\u8bba\u662f\u5e38\u89c1\u7684HTTP\u6d41\u91cf\uff0c\u8fd8\u662f\u590d\u6742\u7684\u4f01\u4e1a\u4e13\u6709\u534f\u8bae\uff0c\u90fd\u80fd\u65e0\u4e00\u9057\u6f0f\u5730\u88ab\u91c7\u96c6\u5230\u3002<\/p>\n\n\n\n<p align=center><img decoding=\"async\" src=\"https:\/\/www.yunshan.net\/blog\/wp-content\/uploads\/2024\/10\/r7sBidln.jpg\" \/><\/p>\n\n\n\n\n<p>\u5176\u6b21\uff0c\u91c7\u96c6\u8fc7\u7a0b\u4e2d\u8fd8\u9700\u8981\u8003\u8651\u5230\u7f51\u7edc\u6027\u80fd\u7684\u5f71\u54cd\u3002\u5982\u679c\u91c7\u96c6\u64cd\u4f5c\u4e0d\u5f53\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7f51\u7edc\u62e5\u585e\u3001\u5ef6\u8fdf\u589e\u52a0\u7b49\u95ee\u9898\uff0c\u4ece\u800c\u5f71\u54cd\u6b63\u5e38\u7684\u4e1a\u52a1\u8fd0\u884c\u3002\u4e91\u6749\u7f51\u7edc\u901a\u8fc7\u4f18\u5316\u91c7\u96c6\u7b56\u7565\uff0c\u91c7\u7528\u5206\u5e03\u5f0f\u91c7\u96c6\u67b6\u6784\u548c\u667a\u80fd\u6d41\u91cf\u63a7\u5236\u6280\u672f\uff0c\u5728\u786e\u4fdd\u91c7\u96c6\u5168\u9762\u6027\u7684\u540c\u65f6\uff0c\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u4e86\u5bf9\u7f51\u7edc\u6027\u80fd\u7684\u8d1f\u9762\u5f71\u54cd\u3002<\/p>\n\n\n\n\n<p>\u800c<a href=\"https:\/\/www.yunshan.net\" target=\"_blank\" style=\"color:blue\" rel=\"noopener noreferrer\">\u7f51\u7edc\u6d41\u91cf\u5206\u53d1<\/a>\uff0c\u5219\u662f\u5c06\u91c7\u96c6\u5230\u7684\u6d41\u91cf\u6570\u636e\u6709\u6548\u5730\u4f20\u9012\u5230\u9700\u8981\u7684\u76ee\u7684\u5730\uff0c\u4ee5\u4f9b\u8fdb\u4e00\u6b65\u7684\u5206\u6790\u548c\u5904\u7406\u3002\u8fd9\u5176\u4e2d\uff0c\u6570\u636e\u7684\u51c6\u786e\u6027\u3001\u5b8c\u6574\u6027\u548c\u5b9e\u65f6\u6027\u81f3\u5173\u91cd\u8981\u3002\u4e91\u6749\u7f51\u7edc\u91c7\u7528\u4e86\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u534f\u8bae\u548c\u52a0\u5bc6\u6280\u672f\uff0c\u4fdd\u8bc1\u6d41\u91cf\u6570\u636e\u5728\u5206\u53d1\u8fc7\u7a0b\u4e2d\u7684\u5b89\u5168\u53ef\u9760\uff0c\u5e76\u4e14\u80fd\u591f\u5b9e\u65f6\u5730\u5c06\u6570\u636e\u9001\u8fbe\u81f3\u5206\u6790\u7cfb\u7edf\uff0c\u4e3a\u5feb\u901f\u51b3\u7b56\u63d0\u4f9b\u652f\u6301\u3002<\/p>\n\n\n\n\n<p>\u5728\u5b9e\u9645\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u4e91\u6749\u7f51\u7edc\u7684\u7f51\u7edc\u6d41\u91cf\u91c7\u96c6\u5206\u53d1\u6280\u672f\u53d1\u6325\u7740\u5de8\u5927\u7684\u4f5c\u7528\u3002\u5bf9\u4e8e\u7f51\u7edc\u5b89\u5168\u9886\u57df\uff0c\u901a\u8fc7\u5bf9\u6d41\u91cf\u7684\u5b9e\u65f6\u91c7\u96c6\u548c\u5206\u6790\uff0c\u53ef\u4ee5\u53ca\u65f6\u53d1\u73b0\u6f5c\u5728\u7684\u653b\u51fb\u884c\u4e3a\u3001\u5f02\u5e38\u6d41\u91cf\u6a21\u5f0f\uff0c\u4ece\u800c\u63d0\u524d\u9884\u8b66\u5e76\u91c7\u53d6\u9632\u62a4\u63aa\u65bd\u3002\u5728\u4f01\u4e1a\u7684\u4e1a\u52a1\u4f18\u5316\u65b9\u9762\uff0c\u80fd\u591f\u6df1\u5165\u4e86\u89e3\u7528\u6237\u7684\u884c\u4e3a\u4e60\u60ef\u3001\u4e1a\u52a1\u7cfb\u7edf\u7684\u6027\u80fd\u74f6\u9888\uff0c\u4e3a\u4f18\u5316\u670d\u52a1\u8d28\u91cf\u3001\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u63d0\u4f9b\u6709\u529b\u7684\u6570\u636e\u652f\u6491\u3002<\/p>\n\n\n\n\n<p>\u4e0e\u4f20\u7edf\u7684\u7f51\u7edc\u6d41\u91cf\u5904\u7406\u65b9\u5f0f\u76f8\u6bd4\uff0c\u4e91\u6749\u7f51\u7edc\u7684\u89e3\u51b3\u65b9\u6848\u5177\u6709\u663e\u8457\u7684\u4f18\u52bf\u3002\u5b83\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u66f4\u5168\u9762\u3001\u66f4\u7cbe\u7ec6\u7684\u6d41\u91cf\u91c7\u96c6\u80fd\u529b\uff0c\u8fd8\u5b9e\u73b0\u4e86\u667a\u80fd\u5316\u7684\u6d41\u91cf\u5206\u53d1\u548c\u7ba1\u7406\u3002\u901a\u8fc7\u5927\u6570\u636e\u5206\u6790\u548c\u673a\u5668\u5b66\u4e60\u6280\u672f\uff0c\u80fd\u591f\u81ea\u52a8\u8bc6\u522b\u91cd\u8981\u7684\u6d41\u91cf\u6570\u636e\uff0c\u5e76\u6839\u636e\u9884\u8bbe\u7684\u7b56\u7565\u8fdb\u884c\u4f18\u5148\u7ea7\u5206\u53d1\uff0c\u63d0\u9ad8\u4e86\u6570\u636e\u5904\u7406\u7684\u6548\u7387\u548c\u4ef7\u503c\u3002<\/p>\n\n\n\n\n<p>\u6b64\u5916\uff0c\u4e91\u6749\u7f51\u7edc\u8fd8\u6ce8\u91cd\u4e0e\u5176\u4ed6\u6280\u672f\u7684\u878d\u5408\u4e0e\u521b\u65b0\u3002\u4f8b\u5982\uff0c\u7ed3\u5408\u4e91\u8ba1\u7b97\u5e73\u53f0\uff0c\u5b9e\u73b0\u4e86\u5f39\u6027\u6269\u5c55\u7684\u6d41\u91cf\u91c7\u96c6\u548c\u5206\u53d1\u670d\u52a1\uff0c\u6ee1\u8db3\u4e86\u4e0d\u540c\u89c4\u6a21\u4f01\u4e1a\u7684\u9700\u6c42\uff1b\u4e0e\u4eba\u5de5\u667a\u80fd\u6280\u672f\u76f8\u7ed3\u5408\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u4e86\u6d41\u91cf\u5206\u6790\u7684\u51c6\u786e\u6027\u548c\u667a\u80fd\u5316\u6c34\u5e73\uff0c\u80fd\u591f\u81ea\u52a8\u53d1\u73b0\u9690\u85cf\u5728\u6d77\u91cf\u6570\u636e\u4e2d\u7684\u6f5c\u5728\u89c4\u5f8b\u548c\u8d8b\u52bf\u3002<\/p>\n\n\n\n\n<p>\u7136\u800c\uff0c\u7f51\u7edc\u6d41\u91cf\u91c7\u96c6\u5206\u53d1\u9886\u57df\u4e5f\u5e76\u975e\u4e00\u7247\u5766\u9014\uff0c\u4ecd\u7136\u9762\u4e34\u7740\u8bf8\u591a\u6311\u6218\u3002\u968f\u7740\u7f51\u7edc\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u65b0\u7684\u5e94\u7528\u534f\u8bae\u548c\u52a0\u5bc6\u6280\u672f\u5c42\u51fa\u4e0d\u7a77\uff0c\u7ed9\u6d41\u91cf\u7684\u8bc6\u522b\u548c\u91c7\u96c6\u5e26\u6765\u4e86\u56f0\u96be\u3002\u540c\u65f6\uff0c\u6570\u636e\u9690\u79c1\u548c\u5b89\u5168\u6cd5\u89c4\u7684\u65e5\u76ca\u4e25\u683c\uff0c\u4e5f\u8981\u6c42\u4e91\u6749\u7f51\u7edc\u5728\u6570\u636e\u5904\u7406\u548c\u5206\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u5fc5\u987b\u66f4\u52a0\u6ce8\u91cd\u5408\u89c4\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n\n<p>\u5c55\u671b\u672a\u6765\uff0c\u4e91\u6749\u7f51\u7edc\u5728\u7f51\u7edc\u6d41\u91cf\u91c7\u96c6\u5206\u53d1\u9886\u57df\u7684\u53d1\u5c55\u524d\u666f\u5e7f\u9614\u3002\u968f\u77405G\u6280\u672f\u7684\u666e\u53ca\u3001\u7269\u8054\u7f51\u7684\u5174\u8d77\uff0c\u7f51\u7edc\u6d41\u91cf\u5c06\u5448\u73b0\u7206\u70b8\u5f0f\u589e\u957f\uff0c\u5bf9\u9ad8\u6548\u3001\u667a\u80fd\u7684\u6d41\u91cf\u91c7\u96c6\u5206\u53d1\u6280\u672f\u7684\u9700\u6c42\u5c06\u66f4\u4e3a\u8feb\u5207\u3002\u4e91\u6749\u7f51\u7edc\u6709\u671b\u7ee7\u7eed\u5f15\u9886\u6280\u672f\u521b\u65b0\uff0c\u4e0d\u65ad\u63d0\u5347\u91c7\u96c6\u548c\u5206\u53d1\u7684\u6027\u80fd\uff0c\u62d3\u5c55\u5e94\u7528\u573a\u666f\uff0c\u4e3a\u6784\u5efa\u66f4\u52a0\u5b89\u5168\u3001\u667a\u80fd\u3001\u9ad8\u6548\u7684\u7f51\u7edc\u73af\u5883\u8d21\u732e\u529b\u91cf\u3002<\/p>\n\n\n\n\n<p>\u603b\u4e4b\uff0c\u4e91\u6749\u7f51\u7edc\u7684\u7f51\u7edc\u6d41\u91cf\u91c7\u96c6\u5206\u53d1\u6280\u672f\u5982\u540c\u53e4\u8001\u667a\u6167\u5728\u73b0\u4ee3\u79d1\u6280\u4e2d\u7684\u95ea\u8000\u5149\u8292\uff0c\u4e3a\u6211\u4eec\u5f00\u542f\u4e86\u63a2\u7d22\u7f51\u7edc\u4e16\u754c\u7684\u65b0\u89c6\u89d2\u3002\u901a\u8fc7\u4e0d\u65ad\u7684\u521b\u65b0\u548c\u53d1\u5c55\uff0c\u5b83\u5c06\u7ee7\u7eed\u4e3a\u4f01\u4e1a\u548c\u793e\u4f1a\u521b\u9020\u66f4\u5927\u7684\u4ef7\u503c\uff0c\u8ba9\u6211\u4eec\u5728\u6570\u5b57\u5316\u7684\u6d6a\u6f6e\u4e2d\u66f4\u52a0\u4ece\u5bb9\u5730\u524d\u884c\u3002\u76f8\u4fe1\u5728\u4e0d\u8fdc\u7684\u5c06\u6765\uff0c\u4e91\u6749\u7f51\u7edc\u5c06\u5728\u7f51\u7edc\u6d41\u91cf\u9886\u57df\u4e66\u5199\u66f4\u52a0\u8f89\u714c\u7684\u7bc7\u7ae0\uff0c\u4e3a\u63a8\u52a8\u884c\u4e1a\u7684\u8fdb\u6b65\u53d1\u6325\u66f4\u5927\u7684\u4f5c\u7528\u3002<\/p>\n\n]]>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":5,"featured_media":14186,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-14185","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-discussion"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/14185","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=14185"}],"version-history":[{"count":0,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/14185\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=14185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=14185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=14185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}