卡帕克托的死人似乎不起作用

时间:2018-08-23 14:50:48

标签: influxdb kapacitor

当httpjson插件停止发送数据点信息时,我试图通过Deadman发出警报时遇到问题。这是我的任务:

ID: webserver_health
Error:
Template:
Type: stream
Status: enabled
Executing: true
Created: 16 Aug 18 12:25 UTC
Modified: 23 Aug 18 13:46 UTC
LastEnabled: 23 Aug 18 13:46 UTC
Databases Retention Policies: ["telegraf.dev"."dev"]
TICKscript:
dbrp "telegraf.dev"."dev"

stream
    |from()
        .measurement('httpjson_webserver_stats')
        .groupBy(*)
    |deadman(1.0, 10s)
        .message('Be-services is offline')
        .stateChangesOnly()
        .slack()
        .channel('#kapacitortests')

DOT:
digraph webserver_health {
graph [throughput="0.00 points/s"];

stream0 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
stream0 -> from1 [processed="322"];

from1 [avg_exec_time_ns="11.396µs" errors="0" working_cardinality="0" ];
from1 -> noop3 [processed="322"];

noop3 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];

stats2 [avg_exec_time_ns="38.281µs" errors="0" working_cardinality="0" ];
stats2 -> derivative4 [processed="346"];

derivative4 [avg_exec_time_ns="6.752µs" errors="0" working_cardinality="2" ];
derivative4 -> alert5 [processed="344"];

alert5 [alerts_inhibited="0" alerts_triggered="0" avg_exec_time_ns="39.059µs" crits_triggered="0" errors="0" infos_triggered="0" oks_triggered="0" warns_triggered="0" working_cardinality="1" ];

我在influxdb论坛https://community.influxdata.com/t/tick-script-for-alert-host-down/971中添加了.groupBy函数,但就我而言,它不能解决问题。请有人提出一个主意,我在这个问题上花了太多时间了..;(

0 个答案:

没有答案