{"id":90068,"date":"2026-08-04T17:02:02","date_gmt":"2026-08-04T09:02:02","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/90068.html"},"modified":"2026-08-04T17:02:02","modified_gmt":"2026-08-04T09:02:02","slug":"%e3%80%90prometheus-%e8%81%94%e9%82%a6%e9%9b%86%e7%be%a4%e4%b8%8e-victoriametrics-%e8%bf%9c%e7%a8%8b%e5%ad%98%e5%82%a8%e5%ae%9e%e6%88%98%e3%80%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/90068.html","title":{"rendered":"\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011"},"content":{"rendered":"<p>\u63d0\u793a&#xff1a;\u672c\u6587\u539f\u521b\u4f5c\u54c1&#xff0c;\u826f\u5fc3\u5236\u4f5c&#xff0c;\u5e72\u8d27\u4e3a\u4e3b&#xff0c;\u7b80\u6d01\u6e05\u6670&#xff0c;\u4e00\u770b\u5c31\u4f1a<\/p>\n<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u4e00\u3001Prometheus\u8054\u90a6&#xff08;Federation&#xff09;<\/li>\n<li>\n<ul>\n<li>1.1 \u4ec0\u4e48\u662fPrometheus\u8054\u90a6<\/li>\n<li>1.2 Prometheus\u8054\u90a6\u5b9e\u6218<\/li>\n<li>\n<ul>\n<li>\u8054\u90a6\u8282\u70b9\u914d\u7f6e<\/li>\n<li>\u914d\u7f6eprometheus\u4e3b\u8282\u70b9<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001Prometheus\u6570\u636e\u5b58\u50a8<\/li>\n<li>\n<ul>\n<li>2.1 \u5b58\u50a8\u539f\u7406<\/li>\n<li>2.2 \u672c\u5730\u5b58\u50a8<\/li>\n<li>2.3 \u8fdc\u7a0b\u5b58\u50a8<\/li>\n<li>\n<ul>\n<li>\u5b9e\u9a8c\u73af\u5883<\/li>\n<li>\u5b89\u88c5VictoriaMetrics<\/li>\n<li>\u914d\u7f6ePrometheus<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>\u524d\u8a00<\/h2>\n<p>\u4e3a\u89e3\u51b3\u591a\u8282\u70b9\u76d1\u63a7\u6570\u636e\u805a\u5408\u6c47\u603b\u95ee\u9898&#xff0c;Prometheus\u63d0\u4f9b\u8054\u90a6\u96c6\u7fa4\u67b6\u6784&#xff0c;\u53ef\u5b9e\u73b0\u591aPrometheus\u8282\u70b9\u6570\u636e\u7edf\u4e00\u91c7\u96c6\u3001\u96c6\u4e2d\u7ba1\u7406&#xff0c;\u9002\u914d\u5206\u5e03\u5f0f\u76d1\u63a7\u573a\u666f\u3002\u540c\u65f6&#xff0c;Prometheus\u539f\u751f\u672c\u5730\u5b58\u50a8\u5b58\u5728\u5bb9\u91cf\u53d7\u9650&#xff0c;\u901a\u8fc7\u90e8\u7f72VictoriaMetrics\u9ad8\u6027\u80fd\u65f6\u5e8f\u6570\u636e\u5e93&#xff0c;\u5b8c\u6210Prometheus\u8fdc\u7a0b\u6301\u4e45\u5316\u5b58\u50a8\u6539\u9020&#xff0c;\u89e3\u51b3\u4f20\u7edf\u76d1\u63a7\u7cfb\u7edf\u7684\u6570\u636e\u5b58\u50a8\u75db\u70b9&#xff0c;\u642d\u5efa\u4e00\u5957\u805a\u5408\u80fd\u529b\u5f3a\u3001\u5b58\u50a8\u65f6\u6548\u4e45\u3001\u6027\u80fd\u7a33\u5b9a\u7684\u76d1\u63a7\u67b6\u6784\u3002<\/p>\n<h2>\u4e00\u3001Prometheus\u8054\u90a6&#xff08;Federation&#xff09;<\/h2>\n<h3>1.1 \u4ec0\u4e48\u662fPrometheus\u8054\u90a6<\/h3>\n<p>Prometheus\u8054\u90a6\u91c7\u7528\u5206\u5c42\u67b6\u6784&#xff0c;\u4e0b\u7ea7Prometheus\u5206\u7247\u91c7\u96c6\u5404\u7c7b\u8282\u70b9\u76d1\u63a7\u6307\u6807&#xff0c;\u4e0a\u7ea7\u603bPrometheus\u7edf\u4e00\u62c9\u53d6\u6c47\u603b&#xff0c;\u65e2\u80fd\u5206\u6563\u91c7\u96c6\u538b\u529b\u3001\u907f\u514d\u5355\u5b9e\u4f8b\u8d1f\u8f7d\u8fc7\u9ad8&#xff0c;\u5b9e\u73b0\u591a\u673a\u623f\u3001\u591a\u96c6\u7fa4\u8fd0\u7ef4\u9694\u79bb&#xff0c;\u8fd8\u53ef\u9002\u914d\u7f51\u7edc\u9694\u79bb\u73af\u5883\u3001\u6309\u9700\u5206\u5c42\u7b5b\u9009\u6307\u6807&#xff0c;\u51cf\u8f7b\u9876\u5c42\u5b58\u50a8\u4e0e\u67e5\u8be2\u5f00\u9500&#xff0c;\u9002\u5408\u5927\u89c4\u6a21\u591a\u96c6\u7fa4\u76d1\u63a7\u573a\u666f <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090156-6a71aa8458199.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <\/p>\n<h3>1.2 Prometheus\u8054\u90a6\u5b9e\u6218<\/h3>\n<table>\n<tr>\u4e3b\u673a\u540dIP\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>prometheus-master<\/td>\n<td>192.168.13.141<\/td>\n<td>\u8054\u90a6\u9876\u5c42\u4e3b\u8282\u70b9&#xff0c;\u6c47\u603b\u62c9\u53d6\u6240\u6709\u5b50\u8054\u90a6\u8282\u70b9\u6307\u6807&#xff0c;\u7edf\u4e00\u67e5\u8be2\u4e0e\u544a\u8b66<\/td>\n<\/tr>\n<tr>\n<td>prometheus-federation1<\/td>\n<td>192.168.13.138<\/td>\n<td>\u8054\u90a6\u5b50\u8282\u70b9 1&#xff0c;\u91c7\u96c6 ubuntu1 \u7684 Node Exporter \u6307\u6807\u5e76\u5411\u4e0a\u6c47\u805a<\/td>\n<\/tr>\n<tr>\n<td>prometheus-federation2<\/td>\n<td>192.168.13.139<\/td>\n<td>\u8054\u90a6\u5b50\u8282\u70b9 2&#xff0c;\u91c7\u96c6 ubuntu2 \u7684 Node Exporter \u6307\u6807\u5e76\u5411\u4e0a\u6c47\u805a<\/td>\n<\/tr>\n<tr>\n<td>ubuntu1<\/td>\n<td>192.168.13.140<\/td>\n<td>\u88ab\u76d1\u63a7\u4e1a\u52a1\u4e3b\u673a&#xff0c;\u8fd0\u884c Node Exporter \u66b4\u9732\u7cfb\u7edf\u6307\u6807<\/td>\n<\/tr>\n<tr>\n<td>ubuntu2<\/td>\n<td>192.168.13.142<\/td>\n<td>\u88ab\u76d1\u63a7\u4e1a\u52a1\u4e3b\u673a&#xff0c;\u8fd0\u884c Node Exporter \u66b4\u9732\u7cfb\u7edf\u6307\u6807<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6211\u5df2\u7ecf\u5728 prometheus-master\u3001prometheus-federation1\u3001prometheus-federation2 \u8282\u70b9\u90e8\u7f72 Prometheus \u670d\u52a1&#xff1b;\u5e76\u5728\u5404\u88ab\u76d1\u63a7\u4e3b\u673a\u90e8\u7f72\u4e86 Exporter&#xff08;\u672c\u6b21\u91c7\u7528 node-exporter&#xff09;\u3002\u90e8\u7f72\u6b65\u9aa4\u53ef\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0&#xff0c;\u672c\u6587\u91cd\u70b9\u8bb2\u89e3 Prometheus \u8054\u90a6\u96c6\u7fa4\u642d\u5efa\u6d41\u7a0b Prometheus&#xff0c;node exporter\u5b89\u88c5&#xff1a;https:\/\/blog.csdn.net\/m0_63756214\/article\/details\/161196428<\/p>\n<h4>\u8054\u90a6\u8282\u70b9\u914d\u7f6e<\/h4>\n<p>root&#064;prometheus<span class=\"token punctuation\">&#8211;<\/span>federation1<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># vim \/opt\/prometheus\/prometheus\/prometheus.yml<\/span><br \/>\n<span class=\"token key atrule\">scrape_configs<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8230;<\/span><span class=\"token punctuation\">&#8230;<\/span><br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">job_name<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;node-exporter&#034;<\/span><br \/>\n    <span class=\"token key atrule\">static_configs<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">targets<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;192.168.13.140:9100&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token key atrule\">labels<\/span><span class=\"token punctuation\">:<\/span><br \/>\n          <span class=\"token key atrule\">instance<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;ubuntu1&#034;<\/span><br \/>\nroot&#064;prometheus<span class=\"token punctuation\">&#8211;<\/span>federation1<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># curl -X POST http:\/\/localhost:9090\/-\/reload<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090156-6a71aa8494de7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95eeprometheus-federation1 ip:9090 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090157-6a71aa8505c25.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>root&#064;prometheus<span class=\"token punctuation\">&#8211;<\/span>federation2<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># vim \/opt\/prometheus\/prometheus\/prometheus.yml <\/span><br \/>\n<span class=\"token key atrule\">scrape_configs<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8230;<\/span><span class=\"token punctuation\">&#8230;<\/span><br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">job_name<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;node-exporter&#034;<\/span><br \/>\n    <span class=\"token key atrule\">static_configs<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">targets<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;192.168.13.142:9100&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token key atrule\">labels<\/span><span class=\"token punctuation\">:<\/span><br \/>\n          <span class=\"token key atrule\">instance<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;ubuntu2&#034;<\/span><br \/>\nroot&#064;prometheus<span class=\"token punctuation\">&#8211;<\/span>federation2<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># curl -X POST http:\/\/localhost:9090\/-\/reload<\/span><\/p>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95eeprometheus-federation2 ip:9090 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090157-6a71aa855d011.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u914d\u7f6eprometheus\u4e3b\u8282\u70b9<\/h4>\n<p>\u914d\u7f6eprometheus\u4e3b\u8282\u70b9\u7ba1\u7406prometheus \u8054\u90a6\u8282\u70b9<\/p>\n<p><span class=\"token key atrule\">scrape_configs<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8230;<\/span><span class=\"token punctuation\">&#8230;<\/span><br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">job_name<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;federate&#039;<\/span><br \/>\n    <span class=\"token key atrule\">scrape_interval<\/span><span class=\"token punctuation\">:<\/span> 15s<br \/>\n    <span class=\"token key atrule\">honor_labels<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n    <span class=\"token key atrule\">metrics_path<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;\/federate&#039;<\/span>   <span class=\"token comment\"># \u6307\u5b9a\u91c7\u96c6\u7aef\u70b9\u8def\u5f84&#xff0c;\u9ed8\u8ba4\u4e3a\/federate<\/span><br \/>\n    <span class=\"token key atrule\">static_configs<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">targets<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;192.168.13.138:9090&#039;<\/span><span class=\"token punctuation\">]<\/span>  <span class=\"token comment\"># \u6307\u5b9a\u8054\u90a6\u8282\u70b9Prometheus\u8282\u70b9\u5730\u5740&#xff0c;\u5982\u679c\u5728k8s\u96c6\u7fa4\u5185&#xff0c;\u9700\u8981\u6307\u5b9ak8s\u7684svc nodeport<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">targets<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;192.168.13.139:9090&#039;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    <span class=\"token key atrule\">params<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">&#039;match[]&#039;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#039;{job&#061;~&#034;prometheus|node-exporter&#034;}&#039;<\/span>  <span class=\"token comment\"># \u6307\u5b9a\u91c7\u96c6\u8054\u90a6\u8282\u70b9\u7684job\u540d\u79f0&#xff0c;\u5982\u679c\u4e0d\u5339\u914d\u5219\u4e0d\u4f1a\u91c7\u96c6<\/span><\/p>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee192.168.13.141:9090 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090157-6a71aa85b3a42.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u67e5\u8be2\u6307\u6807&#xff0c;\u53ef\u4ee5\u770b\u5230\u6536\u96c6\u4e86\u4e24\u4e2a\u8054\u90a6\u8282\u70b9\u7684\u6570\u636e <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090158-6a71aa8646584.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5f53\u524d Prometheus \u8054\u90a6\u96c6\u7fa4\u57fa\u7840\u67b6\u6784\u5df2\u90e8\u7f72\u5b8c\u6210&#xff01;<\/p>\n<p>\u5982\u679c\u53d1\u73b0 Master \u4f9d\u7136\u56e0\u4e3a\u6570\u636e\u91cf\u8fc7\u5927\u800c\u5361\u987f&#xff0c;\u5e94\u8be5\u5728\u8054\u90a6\u8282\u70b9&#xff08;138\/139&#xff09;\u4e0a\u505a\u201c\u9884\u805a\u5408\u201d&#xff0c;\u800c\u4e0d\u662f\u5728 Master \u4e0a\u76f4\u63a5\u62c9\u539f\u59cb\u6570\u636e \u5728 138 \u548c 139 \u7684 Prometheus \u4e2d\u914d\u7f6e Recording Rules&#xff08;\u8bb0\u5f55\u89c4\u5219&#xff09;&#xff0c;\u5c06 5 \u5206\u949f\u7684 CPU\u3001\u5185\u5b58\u7b49\u9ad8\u9891\u6307\u6807\u805a\u5408\u6210\u6bcf\u5206\u949f\u7684\u5747\u503c\u3002\u7136\u540e Master \u7684 match[] \u53ea\u62c9\u53d6\u8fd9\u4e9b\u805a\u5408\u540e\u7684\u65b0\u6307\u6807&#xff08;\u5982 job&#061;\u201caggregated\u201d&#xff09;\u3002\u6b64\u65f6 Master \u7684\u6570\u636e\u91cf\u5c06\u51cf\u5c11 90% \u4ee5\u4e0a&#xff0c;\u8fd9\u624d\u662f\u771f\u6b63\u7684\u538b\u529b\u5378\u8f7d<\/p>\n<h2>\u4e8c\u3001Prometheus\u6570\u636e\u5b58\u50a8<\/h2>\n<h3>2.1 \u5b58\u50a8\u539f\u7406<\/h3>\n<p>prometheus TSDB \u5199\u5165\u5b58\u50a8\u539f\u7406 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090158-6a71aa868473e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6838\u5fc3\u7ec4\u4ef6\u5206\u5de5<\/p>\n<li>Head&#xff08;\u5185\u5b58\u6d3b\u8dc3\u5757&#xff09; \u6307\u6807\u6837\u672c(t,v)\u5148\u8fdbHead\u5185\u5b58&#xff0c;\u9ed8\u8ba4\u7559\u5b582\u5c0f\u65f6&#xff1b;\u914d\u5957\u4e24\u5957\u673a\u5236<\/li>\n<ul>\n<li>M-map&#xff1a;\u5185\u5b58\u6620\u5c04&#xff0c;\u53ea\u5b58\u6587\u4ef6\u5f15\u7528&#xff0c;\u6309\u9700\u628a\u78c1\u76d8chunk\u8f7d\u5165\u5185\u5b58&#xff0c;\u8282\u7701\u5185\u5b58<\/li>\n<li>WAL\u9884\u5199\u65e5\u5fd7&#xff1a;\u4fdd\u8bc1\u5199\u5165\u53ef\u9760<\/li>\n<\/ul>\n<li>Block&#xff08;\u78c1\u76d8\u6301\u4e45\u5757&#xff09; Head\u91cc\u7684\u6570\u636e\u8001\u5316\u6ee12\u5c0f\u65f6\u540e&#xff0c;\u5237\u5165\u78c1\u76d8\u751f\u6210\u53ea\u8bfbBlock&#xff1b;\u8001Block\u4f1a\u6301\u7eed\u5408\u5e76&#xff0c;\u8d85\u6570\u636e\u4fdd\u7559\u5468\u671f\u540e\u81ea\u52a8\u5220\u9664<\/li>\n<p>WAL\u9884\u5199\u65e5\u5fd7\u673a\u5236<\/p>\n<li>\u5199\u5165\u89c4\u5219&#xff1a;\u5148\u5199WAL\u65e5\u5fd7&#xff0c;\u518d\u64cd\u4f5c\u78c1\u76d8Block&#xff0c;\u4fdd\u969c\u5199\u5165\u539f\u5b50\u6027\u3001\u5b95\u673a\u53ef\u91cd\u8bd5\u6062\u590d<\/li>\n<li>\u6587\u4ef6\u7ed3\u6784&#xff1a;WAL\u5207\u5206\u5355\u4e2a\u6700\u5927128MB\u6bb5\u6587\u4ef6&#xff0c;\u5b58\u4e8ewal\u76ee\u5f55&#xff1b;checkpoint\u6587\u4ef6\u8bb0\u5f55\u65e5\u5fd7\u622a\u65ad\u4f4d\u7f6e\u5e76\u540c\u6b65\u843d\u76d8&#xff0c;\u4fdd\u969c\u53ef\u9760\u6027<\/li>\n<p>\u5b8c\u6574\u5199\u5165\u6d41\u7a0b \u6307\u6807\u6837\u672c \u2192 Head\u5185\u5b58&#xff08;\u540c\u6b65\u5199WAL\u9632\u4e22\u5931&#xff09;\u2192 \u7559\u5b582\u5c0f\u65f6\u540e\u5237\u76d8\u751f\u6210Block \u2192 \u8001Block\u6301\u7eed\u5408\u5e76&#xff0c;\u8fc7\u671f\u5220\u9664<\/p>\n<h3>2.2 \u672c\u5730\u5b58\u50a8<\/h3>\n<p>\u6211\u7684prometheus\u662f\u4e0b\u8f7d\u7684tar\u5305&#xff0c;\u7136\u540e\u5b89\u88c5\u5728\/opt\/prometheus\/\u4e0b<\/p>\n<p>root&#064;prometheus<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># ls \/opt\/prometheus\/prometheus\/<\/span><br \/>\nalert.yml  data  LICENSE  NOTICE  prometheus  prometheus.yml  promtool<br \/>\nroot&#064;prometheus<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># ls \/opt\/prometheus\/prometheus\/data\/<\/span><br \/>\n01KYHCV0DA2906BJWNS5M05Z1Y  01KZ5J98CPMFDRNRMG2J4R373Q  chunks_head  queries.active<br \/>\n01KZ5C14G4REHBGBYCBRM8ANBA  01KZ5J98PVVEQVZ71T8DZ3X899  lock         wal<\/p>\n<p>Prometheus TSDB\u672c\u5730\u6570\u636e\u9ed8\u8ba4\u5b58\u653e\u4e8e.\/data&#xff0c;\u5728.\/data\/\u76ee\u5f55\u4e0b\u7c7b\u4f3c\u598201KYHCV0DA2\u2026\u5f62\u5f0f\u7684\u76ee\u5f55\u4e3a 2\u5c0f\u65f6\u5757Block\u76ee\u5f55 Block\u76ee\u5f55\u5185\u5305\u542b4\u7c7b\u6838\u5fc3\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>chunks&#xff1a;\u5b58\u653e\u65f6\u5e8f\u539f\u59cb\u6570\u636e&#xff0c;\u5355\u4e2achunk\u4e0a\u9650512MB&#xff1b;<\/li>\n<li>index&#xff1a;\u7d22\u5f15&#xff0c;\u6839\u636e\u6307\u6807\u540d\u3001\u6807\u7b7e\u5b9a\u4f4d\u65f6\u5e8f\u6570\u636e&#xff1b;<\/li>\n<li>tombstones&#xff1a;\u8f6f\u5220\u9664\u6807\u8bb0&#xff0c;\u4e0d\u76f4\u63a5\u6e05\u7406\u6570\u636e&#xff0c;\u67e5\u8be2\u65f6\u8fc7\u6ee4\u5df2\u5220\u5185\u5bb9&#xff1b;<\/li>\n<li>meta.json&#xff1a;Block\u5143\u6570\u636e&#xff0c;\u652f\u6491\u5757\u5408\u5e76\u3001\u5220\u9664\u7ba1\u7406<\/li>\n<\/ul>\n<p>\u5982\u4e0b\u56fe <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090158-6a71aa86a9185.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>2.3 \u8fdc\u7a0b\u5b58\u50a8<\/h3>\n<p>Prometheus\u672c\u5730\u5b58\u50a8\u5b58\u5728\u5355\u70b9\u6545\u969c\u3001\u6027\u80fd\u74f6\u9888&#xff0c;\u53ef\u901a\u8fc7\u8fdc\u7a0b\u5b58\u50a8\u89e3\u51b3\u3002VictoriaMetrics&#xff08;VM&#xff09;\u662f Go \u8bed\u8a00\u5f00\u53d1\u7684\u9ad8\u6027\u80fd\u65f6\u5e8f\u6570\u636e\u5e93&#xff0c;\u4e3b\u6253 Prometheus \u8fdc\u7a0b\u957f\u671f\u5b58\u50a8&#xff0c;\u4e13\u4e3a\u6d77\u91cf\u76d1\u63a7\u65f6\u5e8f\u6570\u636e\u8bbe\u8ba1<\/p>\n<p>VictoriaMetrics\u6838\u5fc3\u4f18\u52bf 1&#xff0c;\u517c\u5bb9PromQL\u3001Prometheus\/Graphite API&#xff0c;\u53ef\u76f4\u63a5\u66ff\u4ee3Prometheus\u3001Graphite\u505aGrafana\u6570\u636e\u6e90, 2&#xff0c;\u9ad8\u6027\u80fd&#xff1a;\u8bfb\u5199\u541e\u5410\u8fdc\u8d85InfluxDB\u3001TimescaleDB&#xff0c;\u9002\u914d\u4e91\u4f4eIO\/HDD\u5b58\u50a8 3&#xff0c;\u6613\u6269\u5c55\u90e8\u7f72&#xff1a;\u5355\u8282\u70b9\u53ef\u66ff\u4ee3\u4e2d\u5c0f\u578b\u76d1\u63a7\u96c6\u7fa4&#xff0c;\u63d0\u4f9b\u5f00\u6e90\u96c6\u7fa4\u7248&#xff0c;\u9002\u914dK8s\u3001\u5de5\u4e1a\u3001\u7269\u8054\u7f51\u7b49\u6d77\u91cf\u65f6\u5e8f\u573a\u666f<\/p>\n<h4>\u5b9e\u9a8c\u73af\u5883<\/h4>\n<table>\n<tr>\u4e3b\u673a\u540dIP\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>prometheus<\/td>\n<td>192.168.13.141<\/td>\n<td>\u76d1\u63a7\u91c7\u96c6\u670d\u52a1&#xff0c;\u5b9a\u65f6\u6293\u53d6\u88ab\u76d1\u63a7\u4e3b\u673a\u7cfb\u7edf\u6307\u6807&#xff1b;\u901a\u8fc7remote_write\u5c06\u91c7\u96c6\u5230\u7684\u6307\u6807\u8fdc\u7a0b\u63a8\u9001\u81f3VictoriaMetrics\u505a\u957f\u671f\u6301\u4e45\u5316\u5b58\u50a8<\/td>\n<\/tr>\n<tr>\n<td>victoriametrics<\/td>\n<td>192.168.13.139<\/td>\n<td>\u63a5\u6536Prometheus\u8fdc\u7a0b\u4e0a\u62a5\u7684\u76d1\u63a7\u6307\u6807\u5e76\u957f\u671f\u5b58\u50a8&#xff1b;\u63d0\u4f9bPrometheus\u517c\u5bb9API&#xff0c;\u53ef\u5bf9\u63a5Grafana\u53ef\u89c6\u5316<\/td>\n<\/tr>\n<tr>\n<td>ubuntu1<\/td>\n<td>192.168.13.140<\/td>\n<td>\u88ab\u76d1\u63a7\u4e1a\u52a1\u4e3b\u673a&#xff0c;\u90e8\u7f72Node Exporter<\/td>\n<\/tr>\n<tr>\n<td>ubuntu2<\/td>\n<td>192.168.13.142<\/td>\n<td>\u88ab\u76d1\u63a7\u4e1a\u52a1\u4e3b\u673a&#xff0c;\u90e8\u7f72Node Exporter<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u662f\u6211\u76ee\u524dPrometheus\u6240\u76d1\u63a7\u7684\u8bbe\u5907 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090158-6a71aa86be489.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u5b89\u88c5VictoriaMetrics<\/h4>\n<p>Github\u4e0b\u8f7dVictoriaMetrics&#xff1a;https:\/\/github.com\/VictoriaMetrics\/VictoriaMetrics\/releases<\/p>\n<p>\u6ce8\u610f:\u4e0d\u8981\u4e0b\u8f7denterpise\u7248\u672c&#xff0c;\u6b64\u7248\u672c\u9700\u8981\u6388\u6743\u8bb8\u53ef \u6211\u8fd9\u91cc\u6f14\u793a\u7684\u662f\u5355\u673a\u6a21\u5f0f&#xff0c;victoriametrics\u8fd8\u6709\u96c6\u7fa4\u6a21\u5f0f&#xff0c;\u540e\u671f\u4f1a\u51fa\u6559\u7a0b<\/p>\n<p><span class=\"token comment\">## 1. \u4e0b\u8f7dtar\u5305<\/span><br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># wget https:\/\/github.com\/VictoriaMetrics\/VictoriaMetrics\/releases\/download\/v1.145.0\/victoria-metrics-linux-amd64-v1.145.0.tar.gz<\/span><br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># ls<\/span><br \/>\nvictoria<span class=\"token punctuation\">&#8211;<\/span>metrics<span class=\"token punctuation\">&#8211;<\/span>linux<span class=\"token punctuation\">&#8211;<\/span>amd64<span class=\"token punctuation\">&#8211;<\/span>v1.145.0.tar.gz<br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># tar xf victoria-metrics-linux-amd64-v1.145.0.tar.gz <\/span><br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># mv victoria-metrics-prod \/usr\/local\/bin\/<\/span><\/p>\n<p><span class=\"token comment\">## 2. \u521b\u5efa\u7cfb\u7edf\u540e\u53f0\u7528\u6237<\/span><br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># useradd -r -s \/sbin\/nologin victoriametrics<\/span><\/p>\n<p><span class=\"token comment\">## 3. \u521b\u5efa\u6570\u636e\u6301\u4e45\u5316\u76ee\u5f55<\/span><br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># mkdir -p \/data\/victoriametrics<\/span><br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># chown victoriametrics:victoriametrics \/data\/victoriametrics<\/span><\/p>\n<p><span class=\"token comment\">## 4. \u521b\u5efaservice\u6587\u4ef6<\/span><br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># cat &gt; \/lib\/systemd\/system\/victoriametrics.service &lt;&lt;EOF<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>Unit<span class=\"token punctuation\">]<\/span><br \/>\nDescription&#061;VictoriaMetrics<br \/>\nDocumentation&#061;https<span class=\"token punctuation\">:<\/span>\/\/docs.victoriametrics.com\/Single<span class=\"token punctuation\">&#8211;<\/span>server<span class=\"token punctuation\">&#8211;<\/span>VictoriaMetrics.html<br \/>\nAfter&#061;network.target<\/p>\n<p><span class=\"token punctuation\">[<\/span>Service<span class=\"token punctuation\">]<\/span><br \/>\nRestart&#061;on<span class=\"token punctuation\">&#8211;<\/span>failure<br \/>\nUser&#061;victoriametrics<br \/>\nGroup&#061;victoriametrics<br \/>\nExecStart&#061;\/usr\/local\/bin\/victoria<span class=\"token punctuation\">&#8211;<\/span>metrics<span class=\"token punctuation\">&#8211;<\/span>prod <span class=\"token punctuation\">&#8211;<\/span>httpListenAddr&#061;0.0.0.0<span class=\"token punctuation\">:<\/span>8428 <span class=\"token punctuation\">&#8211;<\/span>storageDataPath&#061;\/data\/victoriametrics <span class=\"token punctuation\">&#8211;<\/span>retentionPeriod&#061;12<br \/>\n<span class=\"token comment\">#ExecReload&#061;\/bin\/kill -HUP \\\\$MAINPID<\/span><br \/>\nLimitNOFILE&#061;65535<\/p>\n<p><span class=\"token punctuation\">[<\/span>Install<span class=\"token punctuation\">]<\/span><br \/>\nWantedBy&#061;multi<span class=\"token punctuation\">&#8211;<\/span>user.target<br \/>\nEOF<br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># systemctl daemon-reload<\/span><br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># systemctl enable &#8211;now victoriametrics.service <\/span><\/p>\n<p>-httpListenAddr&#061;0.0.0.0:8428&#xff1a;VM \u5bf9\u5916\u76d1\u542c\u7aef\u53e38428&#xff0c;\u5141\u8bb8\u4efb\u610fIP\u8bbf\u95ee -storageDataPath&#061;\/data\/victoriametrics&#xff1a;\u6307\u6807\u6570\u636e\u6301\u4e45\u5316\u5b58\u50a8\u76ee\u5f55 -retentionPeriod&#061;12&#xff1a;\u6570\u636e\u4fdd\u7559\u65f6\u957f12\u4e2a\u6708 LimitNOFILE&#061;65535&#xff1a;\u8c03\u9ad8\u8fdb\u7a0b\u6700\u5927\u6587\u4ef6\u53e5\u67c4\u6570&#xff0c;\u9002\u914d\u6d77\u91cf\u65f6\u5e8f\u91c7\u96c6\u573a\u666f<\/p>\n<p>root&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># ls \/data\/victoriametrics\/<\/span><br \/>\ndata  flock.lock  metadata  snapshots  tmp<br \/>\nroot&#064;victoriametrics<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># tree \/data\/victoriametrics\/<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090159-6a71aa8735645.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <\/p>\n<h4>\u914d\u7f6ePrometheus<\/h4>\n<p>root&#064;prometheus<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># vim \/opt\/prometheus\/prometheus\/prometheus.yml <\/span><br \/>\n<span class=\"token key atrule\">global<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8230;<\/span><span class=\"token punctuation\">&#8230;<\/span><br \/>\n<span class=\"token key atrule\">remote_write<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">url<\/span><span class=\"token punctuation\">:<\/span> http<span class=\"token punctuation\">:<\/span>\/\/192.168.13.139<span class=\"token punctuation\">:<\/span>8428\/api\/v1\/write<br \/>\n<span class=\"token punctuation\">&#8230;<\/span><span class=\"token punctuation\">&#8230;<\/span><br \/>\n<span class=\"token key atrule\">scrape_configs<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token punctuation\">&#8230;<\/span><span class=\"token punctuation\">&#8230;<\/span><br \/>\n  <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">job_name<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;victoriametrics&#034;<\/span><br \/>\n    <span class=\"token key atrule\">static_configs<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token key atrule\">targets<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;192.168.13.139:8428&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\nroot&#064;prometheus<span class=\"token punctuation\">:<\/span><span class=\"token null important\">~<\/span><span class=\"token comment\"># curl -X POST http:\/\/localhost:9090\/-\/reload<\/span><\/p>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee\u53ef\u89c6\u5316 Web \u7ba1\u7406\u63a7\u5236\u53f0http:\/\/192.168.13.139:8428\/vmui\u53ef\u4ee5\u67e5\u770b\u76d1\u63a7\u6307\u6807 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090159-6a71aa87527d1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u767b\u5f55grafana&#xff0c;\u6dfb\u52a0victoriametrics\u6570\u636e\u6e90 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090159-6a71aa87b5133.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090200-6a71aa8822359.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6dfb\u52a0dashboard&#xff0c;\u53ef\u4ee5\u770b\u5230\u6570\u636e\u4ecevictoriametrics\u4e2d\u6765 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090200-6a71aa88748d7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5230\u6b64Prometheus\u8fdc\u7a0b\u5b58\u50a8\u6570\u636e\u5c31\u90e8\u7f72\u597d\u4e86&#xff01;<\/p>\n<p>\u6ce8&#xff1a; \u6587\u4e2d\u82e5\u6709\u758f\u6f0f&#xff0c;\u6b22\u8fce\u5927\u5bb6\u6307\u6b63\u8d50\u6559\u3002 \u672c\u6587\u4e3a100%\u539f\u521b&#xff0c;\u8f6c\u8f7d\u8bf7\u52a1\u5fc5\u6807\u6ce8\u539f\u521b\u4f5c\u8005&#xff0c;\u5c0a\u91cd\u52b3\u52a8\u6210\u679c\u3002 \u6c42\u8d5e\u3001\u6c42\u5173\u6ce8\u3001\u6c42\u8bc4\u8bba&#xff01;\u4f60\u7684\u652f\u6301\u662f\u6211\u66f4\u65b0\u7684\u6700\u5927\u52a8\u529b&#xff0c;\u8bc4\u8bba\u533a\u7b49\u4f60&#xff5e;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63d0\u793a&#xff1a;\u672c\u6587\u539f\u521b\u4f5c\u54c1&#xff0c;\u826f\u5fc3\u5236\u4f5c&#xff0c;\u5e72\u8d27\u4e3a\u4e3b&#xff0c;\u7b80\u6d01\u6e05\u6670&#xff0c;\u4e00\u770b\u5c31\u4f1a \u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001Prometheus\u8054\u90a6&#xff08;Federation&#xff09;1.1 \u4ec0\u4e48\u662fPrometheus\u8054\u90a61.2 Prometheus\u8054\u90a6\u5b9e\u6218\u8054\u90a6\u8282\u70b9\u914d\u7f6e\u914d\u7f6eprometheus\u4e3b\u8282\u70b9\u4e8c\u3001Prometheus\u6570\u636e\u5b58\u50a82.1 \u5b58\u50a8\u539f\u74062.2 \u672c\u5730\u5b58\u50a82.3 \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u9a8c\u73af\u5883\u5b89\u88c5VictoriaMetrics\u914d\u7f6ePromethe<\/p>\n","protected":false},"author":2,"featured_media":90054,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10250,10249,678],"topic":[],"class_list":["post-90068","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-victoriametrics","tag-10249","tag-prometheus"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/90068.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u63d0\u793a&#xff1a;\u672c\u6587\u539f\u521b\u4f5c\u54c1&#xff0c;\u826f\u5fc3\u5236\u4f5c&#xff0c;\u5e72\u8d27\u4e3a\u4e3b&#xff0c;\u7b80\u6d01\u6e05\u6670&#xff0c;\u4e00\u770b\u5c31\u4f1a \u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001Prometheus\u8054\u90a6&#xff08;Federation&#xff09;1.1 \u4ec0\u4e48\u662fPrometheus\u8054\u90a61.2 Prometheus\u8054\u90a6\u5b9e\u6218\u8054\u90a6\u8282\u70b9\u914d\u7f6e\u914d\u7f6eprometheus\u4e3b\u8282\u70b9\u4e8c\u3001Prometheus\u6570\u636e\u5b58\u50a82.1 \u5b58\u50a8\u539f\u74062.2 \u672c\u5730\u5b58\u50a82.3 \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u9a8c\u73af\u5883\u5b89\u88c5VictoriaMetrics\u914d\u7f6ePromethe\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/90068.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-04T09:02:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090156-6a71aa8458199.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90068.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/90068.html\",\"name\":\"\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-04T09:02:02+00:00\",\"dateModified\":\"2026-08-04T09:02:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/90068.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/90068.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90068.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/90068.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u63d0\u793a&#xff1a;\u672c\u6587\u539f\u521b\u4f5c\u54c1&#xff0c;\u826f\u5fc3\u5236\u4f5c&#xff0c;\u5e72\u8d27\u4e3a\u4e3b&#xff0c;\u7b80\u6d01\u6e05\u6670&#xff0c;\u4e00\u770b\u5c31\u4f1a \u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001Prometheus\u8054\u90a6&#xff08;Federation&#xff09;1.1 \u4ec0\u4e48\u662fPrometheus\u8054\u90a61.2 Prometheus\u8054\u90a6\u5b9e\u6218\u8054\u90a6\u8282\u70b9\u914d\u7f6e\u914d\u7f6eprometheus\u4e3b\u8282\u70b9\u4e8c\u3001Prometheus\u6570\u636e\u5b58\u50a82.1 \u5b58\u50a8\u539f\u74062.2 \u672c\u5730\u5b58\u50a82.3 \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u9a8c\u73af\u5883\u5b89\u88c5VictoriaMetrics\u914d\u7f6ePromethe","og_url":"https:\/\/www.wsisp.com\/helps\/90068.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-04T09:02:02+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804090156-6a71aa8458199.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/90068.html","url":"https:\/\/www.wsisp.com\/helps\/90068.html","name":"\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-04T09:02:02+00:00","dateModified":"2026-08-04T09:02:02+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/90068.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/90068.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/90068.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Prometheus \u8054\u90a6\u96c6\u7fa4\u4e0e VictoriaMetrics \u8fdc\u7a0b\u5b58\u50a8\u5b9e\u6218\u3011"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=90068"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90068\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/90054"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=90068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=90068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=90068"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=90068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}