{"id":208174,"date":"2025-07-08T17:04:13","date_gmt":"2025-07-08T09:04:13","guid":{"rendered":"https:\/\/server.hk\/cnblog\/208174\/"},"modified":"2025-07-08T17:04:13","modified_gmt":"2025-07-08T09:04:13","slug":"kapacitor-%e6%9c%aa%e8%bf%90%e8%a1%8c%e8%a1%a8%e7%a4%ba%e5%a4%b1%e8%b4%a5","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/208174\/","title":{"rendered":"kapacitor \u672a\u8fd0\u884c\u8868\u793a\u5931\u8d25"},"content":{"rendered":"<p><b><\/b> <\/p>\n<p>\u5f53\u524d\u4f4d\u7f6e\uff1a <span>&gt;<\/span> <span>&gt;<\/span> <span>&gt;<\/span> <span>&gt;<\/span> <span>kapacitor \u672a\u8fd0\u884c\u8868\u793a\u5931\u8d25<\/span><\/p>\n<p><span>\u6765\u6e90\uff1astackoverflow<\/span><br \/>\n<span>2024-04-29 21:03:26<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u4f60\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">Golang<\/span>\u76f8\u5173\u7684\u77e5\u8bc6\u5417\uff1f\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300akapacitor \u672a\u8fd0\u884c\u8868\u793a\u5931\u8d25\u300b<\/span>\uff0c\u4e3b\u8981\u4ecb\u7ecd\u7684\u5185\u5bb9\u5c31\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\uff0c\u5982\u679c\u4f60\u60f3\u63d0\u5347\u81ea\u5df1\u7684\u5f00\u53d1\u80fd\u529b\uff0c\u5c31\u4e0d\u8981\u9519\u8fc7\u8fd9\u7bc7\u6587\u7ae0\uff0c\u5927\u5bb6\u8981\u77e5\u9053\u7f16\u7a0b\u7406\u8bba\u57fa\u7840\u548c\u5b9e\u6218\u64cd\u4f5c\u90fd\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u54e6\uff01<\/p>\n<p> \u95ee\u9898\u5185\u5bb9<br \/>\n <\/p>\n<p>\u5e2e\u52a9\u6211\u7684 apacitor \u6ca1\u6709\u8fd0\u884c\uff0c\u5b9e\u9645\u4e0a\u6211\u5728 kapacitor \u548c telegraf \u7684\u540c\u4e00\u670d\u52a1\u5668\u4e0a\u8fd0\u884c influxdb\uff0c\u4f46\u6211\u7684 kapacitor \u4e0d\u5de5\u4f5c<\/p>\n<pre>\nkapacitor.service - Time series data processing engine.\n   Loaded: loaded (\/lib\/systemd\/system\/kapacitor.service; enabled; vendor preset: enabled)\n   Active: failed (Result: exit-code) since Thu 2019-01-03 17:56:38 UTC; 3s ago\n     Docs: https:\/\/github.com\/influxdb\/kapacitor\n  Process: 2502 ExecStart=\/usr\/bin\/kapacitord -config \/etc\/kapacitor\/kapacitor.conf $KAPACITOR_OPTS (code=exited, status=1\/FAILURE)\n Main PID: 2502 (code=exited, status=1\/FAILURE)\n\nJan 03 17:56:38 ip-172-31-43-67 systemd[1]: kapacitor.service: Service hold-off time over, scheduling restart.\nJan 03 17:56:38 ip-172-31-43-67 systemd[1]: kapacitor.service: Scheduled restart job, restart counter is at 5.\nJan 03 17:56:38 ip-172-31-43-67 systemd[1]: Stopped Time series data processing engine..\nJan 03 17:56:38 ip-172-31-43-67 systemd[1]: kapacitor.service: Start request repeated too quickly.\nJan 03 17:56:38 ip-172-31-43-67 systemd[1]: kapacitor.service: Failed with result 'exit-code'.\nJan 03 17:56:38 ip-172-31-43-67 systemd[1]: Failed to start Time series data processing engine..\n<\/pre>\n<p> <\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<p> <\/p>\n<p>\u6211\u786e\u5b9e\u4e3a\u81ea\u5df1\u627e\u5230\u4e86\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<pre>[[influxdb]]\nenabled = true\nname = \"localhost\"\ndefault = true\nurls = [\"http:\/\/localhost:8086\"]\nusername = \"user\"\npassword = \"password\"<\/pre>\n<p>\u60a8\u5fc5\u987b\u8003\u8651\u4e4b\u524d\u9700\u8981\u5728 influxdb \u4e2d\u521b\u5efa\u7528\u6237\u7684\u6570\u91cf<\/p>\n<p>\u4eca\u5929\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff1b\u5173\u4e8eGolang\u7684\u6280\u672f\u77e5\u8bc6\u6211\u4eec\u4f1a\u4e00\u70b9\u70b9\u6df1\u5165\u4ecb\u7ecd\uff0c\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u4e00\u8d77\u5b66\u4e60\u7f16\u7a0b~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u524d\u4f4d\u7f6e\uff1a &gt; &gt; &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-208174","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/208174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=208174"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/208174\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=208174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=208174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=208174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}