{"id":112313,"date":"2020-02-14T11:17:10","date_gmt":"2020-02-14T03:17:10","guid":{"rendered":"http:\/\/4563.org\/?p=112313"},"modified":"2020-02-14T11:17:10","modified_gmt":"2020-02-14T03:17:10","slug":"prometheus-federation-%e7%9a%84%e5%86%85%e5%ad%98%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=112313","title":{"rendered":"prometheus federation \u7684\u5185\u5b58\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  prometheus federation \u7684\u5185\u5b58\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : plko345 <\/span>  <span><i><\/i> 56<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9047\u5230\u4e00\u4e2a\u95ee\u9898, prometheus-1 \u901a\u8fc7 federate \u53bb pull \u53e6\u4e00\u4e2a prometheus-2 \u4e0a\u7684\u6570\u636e\u65f6, \u5927\u591a\u6210\u529f, \u4f46\u662f\u5f53\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u51fa\u73b0\u591a\u6b21 timeout \u7684\u60c5\u51b5, \u8fd9\u65f6 prometheus-1 \u7684\u5185\u5b58\u4f1a\u66b4\u6da8\u597d\u51e0\u4e2a GB, \u60f3\u77e5\u9053\u8fd9\u65f6 prometheus-1 \u4e0a\u7684\u5de5\u4f5c\u673a\u5236\u662f\u4ec0\u4e48, \u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4\u5b83\u9700\u8981\u8fd9\u90e8\u5206\u5185\u5b58<\/p>\n<blockquote>\n<p>\u5f3a\u8c03\u4e0b, \u662f\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u51fa\u73b0\u591a\u6b21 pull \u5931\u8d25\u624d\u66b4\u6da8<\/p>\n<\/blockquote>\n<p>\u6211\u7684\u731c\u6d4b<\/p>\n<ol>\n<li>prometheus pull \u8fd9\u90e8\u5206\u6570\u636e\u5931\u8d25, \u56e0\u4e3a\u6570\u636e\u4e0d\u5b8c\u6574, \u9700\u8981\u5c06\u5df2\u7ecf\u83b7\u5f97\u7684\u90e8\u5206\u6570\u636e\u6e05\u7406\u6389, \u53ef\u662f\u8fd9\u65f6\u4e00\u4e2a HTTP \u8bf7\u6c42\u5e76\u6ca1\u6709\u5b8c\u6210, \u8fd9&#8221;\u90e8\u5206\u6570\u636e&#8221;\u5b58\u5728\u5417?<\/li>\n<li>pull timeout \u540e, \u56e0\u4e3a\u5230\u4e86\u4e0b\u4e00\u6b21\u7684 pull, \u5f00\u59cb\u65b0\u7684 pull \u7684\u540c\u65f6, \u9700\u8981\u5904\u7406\u6389\u524d\u4e00\u4e2a\u672a\u5b8c\u6210\u8bf7\u6c42, \u5c06\u5176\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u5904\u7406, \u4f3c\u4e4e\u8fd8\u662f 1 \u7684\u6837\u5b50<\/li>\n<li>prometheus \u5185\u90e8\u7684\u67d0\u79cd\u673a\u5236\u9700\u8981\u5b83\u5728 pull timeout \u65f6\u505a\u4e9b\u79d8\u5bc6\u7684\u5de5\u4f5c&#8230;<\/li>\n<\/ol>\n<p>\u5982\u679c\u53ef\u4ee5\u63d0\u4f9b\u4e0b\u76f8\u5173\u7684\u535a\u5ba2\u6587\u6863\u4e5f\u53ef\u4ee5, \u641c\u7d22\u4e86\u597d\u4e9b\u4fe1\u606f, \u53d1\u73b0\u90fd\u6ca1\u6709\u89e3\u91ca\u8fd9\u4e00\u73b0\u8c61\u7684, \u5148\u8c22\u8c22\u5927\u5bb6<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>prometheus federa&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/112313"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112313"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/112313\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112313"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}