Hi folks.
Btw: I’d happily drop $100 per course if you published courses on:
- A deep dive into tick scripts including many examples, and how to debug tick scripts
- Basic math / stats (and other pre-req knowledge) needed to use any sort of alerting tools and especially the various math functions needed and that are useful to understand alerting in general
After spending roughly 40-60 hours digging into influx and kapacitor I have it mostly working, but there are a few things that behave differently than I expect. I’m here to banish my ignorance.
I have confusion / questions around these 4 points:
-
In the context of a tick script the difference between cumulativeSum and Sum are confusing to me. It appears that cumSum sums up all the values for a given window (period). Does sum keep adding up all values until the warning level is reset? I haven’t been able to figure out why and how sum operates. I’m trying to alert on the number of box crashes during a window of time.
-
For a batch script, can I create “buckets” of say 30min, and then query back 2 hours, and alert if any of the buckets exceed x number? Or is a batch only allowed to be 1 bucket, and I need to use streaming?
-
Is there any way at all to shift the
Time
field in the message by timezone? -
[the main question in this post] I record a stream for 60s. Then I manually input these data points
1,4,3,3,25
into influxdb using the CLI. I play this back, with default options, and with the-real-clock
flag. The logs show 7 entries for each of these values, and then the cumulativeSum seems to give me a running total for each of these points (*7), which is not what I expect.
I’m using the dockerized tick stack.
Kapacitor: 1.3.3
InfluxDB: 1.3.5
Chronograf 1.3.8
Telegraf 1.3.0
My tick script:
var message = '7) [{{.Level}}] {{ index .Fields "cumSum" }} Restarts for {{ index .Tags "pool" }} during the last hour. Generated by "{{.ID}}" rule @ {{.Time}}'
var db = 'primary'
var rp = 'autogen'
var measurement = 'restarts'
var groupBy = ['pool']
var whereFilter = lambda: ("pool" == 'p2pnodeweb')
var period = 30s
var every = 10s
var data = stream
|from()
.database(db)
.retentionPolicy(rp)
.measurement(measurement)
.groupBy(groupBy)
.where(whereFilter)
|log()
.prefix('r7-0')
.level('DEBUG')
|window()
.period(period)
.every(every)
// |log('/tmp/from.log')
// |cumulativeSum('value')
|log()
.prefix('r7-1')
.level('DEBUG')
|cumulativeSum('value')
.as('cumSum')
|log()
.prefix('r7-2')
.level('DEBUG')
var trigger = data
|influxDBOut()
.create()
.database(outputDB)
.retentionPolicy(outputRP)
.measurement(outputMeasurement)
.tag('alertName', name)
.tag('triggerType', triggerType)
var trigger2 = data
|alert()
.crit(lambda: "cumSum" > 22)
.critReset(lambda: "cumSum" < 22)
.warn(lambda: "cumSum" > 0)
// .stateChangesOnly(60m) //fire on state changes only, but still fire every 60min
.message(message)
.id(idVar)
.idTag(idTag)
.messageField(messageField)
.durationField(durationField)
.log('/tmp/alerts.log')
.slack()
.channel('t-platform-bot')
I then
- create a recording with:
kapacitor record stream -task restart_alert -duration 60s
- Use the influx CLI to insert these values:
1,4,3,3,25
INSERT restarts,pool=appName value=1
INSERT restarts,pool=appName value=4.0
[…] - replay with
kapacitor replay -recording 0686e220-8ac2-4b9d-a919-0c0d98e2a82c -task restart_alert
I also try withreal-clock
This results in 2 alerts being sent to slack. Both showing 23
as the cumSum. I’m guessing the alert is sent out as soon as the cumSum crosses the 22
threshold, but I cannot understand what combination of values or windows yielded that amount. This becomes even more obvious when I make the window (period) larger.
I read the design doc on github, and understand that c
below stands for collected
and e
stands for emitted
, but I don’t know what exactly that means. Is that data points that are being passed through? Chunks of data?
My biggest confusion is on these 2 points: 1) Why do the logs show 7 entries for each data point? 2) When I don’t use a period()
a log entry is shown after the 7 entries for each point, which just adds to my confusion.
Any help would be greatly appreciated!
Thanks,
Jamis
kapacitor_1 | [task_master:40b8a4fc-4014-4daf-8bc1-a23926edea5f] 2017/11/30 00:06:41 I! opened
kapacitor_1 | [httpd] 127.0.0.1 - - [30/Nov/2017:00:06:41 +0000] "POST /kapacitor/v1/replays HTTP/1.1" 201 262 "-" "KapacitorClient" 57e804db-d562-11e7-807a-000000000000 23077
kapacitor_1 | [task_master:40b8a4fc-4014-4daf-8bc1-a23926edea5f] 2017/11/30 00:06:41 D! Starting task: restart_alert7
kapacitor_1 | [task_master:40b8a4fc-4014-4daf-8bc1-a23926edea5f] 2017/11/30 00:06:41 I! Started task: restart_alert7
kapacitor_1 | [task_master:40b8a4fc-4014-4daf-8bc1-a23926edea5f] 2017/11/30 00:06:41 D! digraph restart_alert7 {
kapacitor_1 | stream0 -> from1;
kapacitor_1 | from1 -> log2;
kapacitor_1 | log2 -> window3;
kapacitor_1 | window3 -> log4;
kapacitor_1 | log4 -> cumulativeSum5;
kapacitor_1 | cumulativeSum5 -> log6;
kapacitor_1 | log6 -> influxdb_out7;
kapacitor_1 | log6 -> alert8;
kapacitor_1 | }
influxdb_1 | [I] 2017-11-30T00:06:41Z CREATE DATABASE chronograf WITH NAME autogen service=query
kapacitor_1 | [edge:task_master:40b8a4fc-4014-4daf-8bc1-a23926edea5f|19c2f552-d101-46dc-87f2-ca0c729820d6->stream] 2017/11/30 00:06:41 D! closing c: 35 e: 34
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":1},"Time":"2017-11-30T00:06:41.662492048Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":1},"Time":"2017-11-30T00:06:41.662492048Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":1},"Time":"2017-11-30T00:06:41.662492048Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":1},"Time":"2017-11-30T00:06:41.662492048Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":1},"Time":"2017-11-30T00:06:41.662492048Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":1},"Time":"2017-11-30T00:06:41.662492048Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":1},"Time":"2017-11-30T00:06:41.662492048Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":4},"Time":"2017-11-30T00:06:50.716692931Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":4},"Time":"2017-11-30T00:06:50.716692931Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":4},"Time":"2017-11-30T00:06:50.716692931Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":4},"Time":"2017-11-30T00:06:50.716692931Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":4},"Time":"2017-11-30T00:06:50.716692931Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":4},"Time":"2017-11-30T00:06:50.716692931Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":4},"Time":"2017-11-30T00:06:50.716692931Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:57.798601155Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:57.798601155Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:57.798601155Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:57.798601155Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:57.798601155Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:57.798601155Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:57.798601155Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:58.318695866Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:58.318695866Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:58.318695866Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:58.318695866Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:58.318695866Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:58.318695866Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":3},"Time":"2017-11-30T00:06:58.318695866Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":25},"Time":"2017-11-30T00:07:08.197481013Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":25},"Time":"2017-11-30T00:07:08.197481013Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":25},"Time":"2017-11-30T00:07:08.197481013Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":25},"Time":"2017-11-30T00:07:08.197481013Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":25},"Time":"2017-11-30T00:07:08.197481013Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":25},"Time":"2017-11-30T00:07:08.197481013Z"}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log2] 2017/11/30 00:06:41 D! r7-0 {"Name":"restarts","Database":"primary","RetentionPolicy":"autogen","Group":"pool=p2pnodeweb","Dimensions":{"ByName":false,"TagNames":["pool"]},"Tags":{"pool":"p2pnodeweb"},"Fields":{"value":25},"Time":"2017-11-30T00:07:08.197481013Z"}
kapacitor_1 |
influxdb_1 | [httpd] 172.23.0.6 - - [30/Nov/2017:00:06:41 +0000] "POST /query?db=&q=CREATE+DATABASE+chronograf+WITH+NAME+autogen HTTP/1.1" 200 62 "-" "KapacitorInfluxDBClient" 57ee3196-d562-11e7-8018-000000000000 6206
kapacitor_1 | [edge:task_master:40b8a4fc-4014-4daf-8bc1-a23926edea5f|write_points->stream] 2017/11/30 00:06:41 D! closing c: 0 e: 0
kapacitor_1 | [edge:restart_alert7|stream->stream0] 2017/11/30 00:06:41 D! closing c: 35 e: 35
kapacitor_1 | [restart_alert7:log4] 2017/11/30 00:06:41 D! r7-1 {"name":"restarts","tmax":"2017-11-30T00:06:51.662492048Z","group":"pool=p2pnodeweb","tags":{"pool":"p2pnodeweb"},"points":[{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}}]}
kapacitor_1 |
kapacitor_1 | [edge:restart_alert7|stream0->from1] 2017/11/30 00:06:41 D! closing c: 35 e: 35
kapacitor_1 | [edge:restart_alert7|from1->log2] 2017/11/30 00:06:41 D! closing c: 35 e: 35
kapacitor_1 | [edge:restart_alert7|log2->window3] 2017/11/30 00:06:41 D! closing c: 35 e: 35
kapacitor_1 | [edge:restart_alert7|window3->log4] 2017/11/30 00:06:41 D! closing c: 2 e: 2
kapacitor_1 | [restart_alert7:log4] 2017/11/30 00:06:41 D! r7-1 {"name":"restarts","tmax":"2017-11-30T00:07:07.798601155Z","group":"pool=p2pnodeweb","tags":{"pool":"p2pnodeweb"},"points":[{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"value":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"value":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"value":3},"tags":{"pool":"p2pnodeweb"}}]}
kapacitor_1 |
kapacitor_1 | [edge:restart_alert7|log4->cumulativeSum5] 2017/11/30 00:06:41 D! closing c: 2 e: 0
kapacitor_1 | [edge:restart_alert7|cumulativeSum5->log6] 2017/11/30 00:06:41 D! closing c: 2 e: 0
kapacitor_1 | [restart_alert7:log6] 2017/11/30 00:06:41 D! r7-2 {"name":"restarts","tmax":"2017-11-30T00:06:51.662492048Z","group":"pool=p2pnodeweb","tags":{"pool":"p2pnodeweb"},"points":[{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":2},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":5},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":6},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":7},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":11},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":15},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":19},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":23},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":27},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":31},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":35},"tags":{"pool":"p2pnodeweb"}}]}
kapacitor_1 |
kapacitor_1 | [restart_alert7:log6] 2017/11/30 00:06:41 D! r7-2 {"name":"restarts","tmax":"2017-11-30T00:07:07.798601155Z","group":"pool=p2pnodeweb","tags":{"pool":"p2pnodeweb"},"points":[{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":1},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":2},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":3},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":4},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":5},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":6},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:41.662492048Z","fields":{"cumSum":7},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":11},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":15},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":19},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":23},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":27},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":31},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:50.716692931Z","fields":{"cumSum":35},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"cumSum":38},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"cumSum":41},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"cumSum":44},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"cumSum":47},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"cumSum":50},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"cumSum":53},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:57.798601155Z","fields":{"cumSum":56},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"cumSum":59},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"cumSum":62},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"cumSum":65},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"cumSum":68},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"cumSum":71},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"cumSum":74},"tags":{"pool":"p2pnodeweb"}},{"time":"2017-11-30T00:06:58.318695866Z","fields":{"cumSum":77},"tags":{"pool":"p2pnodeweb"}}]}
kapacitor_1 |
kapacitor_1 | [edge:restart_alert7|log6->alert8] 2017/11/30 00:06:41 D! closing c: 2 e: 0
kapacitor_1 | [edge:restart_alert7|log6->influxdb_out7] 2017/11/30 00:06:41 D! closing c: 2 e: 0
kapacitor_1 | [restart_alert7:alert8] 2017/11/30 00:06:41 D! CRITICAL alert triggered id:7) Restarts > 20:pool=p2pnodeweb msg:7) [CRITICAL] 23 Restarts for p2pnodeweb during the last hour. Generated by "7) Restarts > 20:pool=p2pnodeweb" rule @ 2017-11-30 00:06:50.716692931 +0000 UTC data:&{restarts map[pool:p2pnodeweb] [time cumSum] [[2017-11-30 00:06:41.662492048 +0000 UTC 1] [2017-11-30 00:06:41.662492048 +0000 UTC 2] [2017-11-30 00:06:41.662492048 +0000 UTC 3] [2017-11-30 00:06:41.662492048 +0000 UTC 4] [2017-11-30 00:06:41.662492048 +0000 UTC 5] [2017-11-30 00:06:41.662492048 +0000 UTC 6] [2017-11-30 00:06:41.662492048 +0000 UTC 7] [2017-11-30 00:06:50.716692931 +0000 UTC 11] [2017-11-30 00:06:50.716692931 +0000 UTC 15] [2017-11-30 00:06:50.716692931 +0000 UTC 19] [2017-11-30 00:06:50.716692931 +0000 UTC 23] [2017-11-30 00:06:50.716692931 +0000 UTC 27] [2017-11-30 00:06:50.716692931 +0000 UTC 31] [2017-11-30 00:06:50.716692931 +0000 UTC 35]]}
kapacitor_1 | [restart_alert7:alert8] 2017/11/30 00:06:41 D! CRITICAL alert triggered id:7) Restarts > 20:pool=p2pnodeweb msg:7) [CRITICAL] 23 Restarts for p2pnodeweb during the last hour. Generated by "7) Restarts > 20:pool=p2pnodeweb" rule @ 2017-11-30 00:06:50.716692931 +0000 UTC data:&{restarts map[pool:p2pnodeweb] [time cumSum] [[2017-11-30 00:06:41.662492048 +0000 UTC 1] [2017-11-30 00:06:41.662492048 +0000 UTC 2] [2017-11-30 00:06:41.662492048 +0000 UTC 3] [2017-11-30 00:06:41.662492048 +0000 UTC 4] [2017-11-30 00:06:41.662492048 +0000 UTC 5] [2017-11-30 00:06:41.662492048 +0000 UTC 6] [2017-11-30 00:06:41.662492048 +0000 UTC 7] [2017-11-30 00:06:50.716692931 +0000 UTC 11] [2017-11-30 00:06:50.716692931 +0000 UTC 15] [2017-11-30 00:06:50.716692931 +0000 UTC 19] [2017-11-30 00:06:50.716692931 +0000 UTC 23] [2017-11-30 00:06:50.716692931 +0000 UTC 27] [2017-11-30 00:06:50.716692931 +0000 UTC 31] [2017-11-30 00:06:50.716692931 +0000 UTC 35] [2017-11-30 00:06:57.798601155 +0000 UTC 38] [2017-11-30 00:06:57.798601155 +0000 UTC 41] [2017-11-30 00:06:57.798601155 +0000 UTC 44] [2017-11-30 00:06:57.798601155 +0000 UTC 47] [2017-11-30 00:06:57.798601155 +0000 UTC 50] [2017-11-30 00:06:57.798601155 +0000 UTC 53] [2017-11-30 00:06:57.798601155 +0000 UTC 56] [2017-11-30 00:06:58.318695866 +0000 UTC 59] [2017-11-30 00:06:58.318695866 +0000 UTC 62] [2017-11-30 00:06:58.318695866 +0000 UTC 65] [2017-11-30 00:06:58.318695866 +0000 UTC 68] [2017-11-30 00:06:58.318695866 +0000 UTC 71] [2017-11-30 00:06:58.318695866 +0000 UTC 74] [2017-11-30 00:06:58.318695866 +0000 UTC 77]]}
kapacitor_1 | [httpd] 127.0.0.1 - - [30/Nov/2017:00:06:42 +0000] "GET /kapacitor/v1/replays/40b8a4fc-4014-4daf-8bc1-a23926edea5f HTTP/1.1" 202 262 "-" "KapacitorClient" 58389323-d562-11e7-807b-000000000000 400
kapacitor_1 | [httpd] 127.0.0.1 - - [30/Nov/2017:00:06:42 +0000] "GET /kapacitor/v1/replays/40b8a4fc-4014-4daf-8bc1-a23926edea5f HTTP/1.1" 202 262 "-" "KapacitorClient" 588515a1-d562-11e7-807c-000000000000 816
influxdb_1 | [httpd] 172.23.0.6 - - [30/Nov/2017:00:06:42 +0000] "POST /write?consistency=&db=chronograf&precision=ns&rp=autogen HTTP/1.1" 204 0 "-" "KapacitorInfluxDBClient" 5890863e-d562-11e7-8019-000000000000 1452
kapacitor_1 | [task_master:40b8a4fc-4014-4daf-8bc1-a23926edea5f] 2017/11/30 00:06:42 I! Stopped task: restart_alert7
kapacitor_1 | [task_master:40b8a4fc-4014-4daf-8bc1-a23926edea5f] 2017/11/30 00:06:42 I! closed