On Thursday, November 24, 2016 at 2:40:02 AM UTC+5:30, Sean Beckett wrote:
> That looks correct. Can you also share the code for the alert4 task?
> 
> 
> On Wed, Nov 23, 2016 at 2:00 PM,  <[email protected]> wrote:
> On Thursday, November 24, 2016 at 2:19:00 AM UTC+5:30, 
> [email protected] wrote:
> 
> > i have a kapacitor instance running on localhost. kapacitor stats ingress 
> > shows incoming datapoint for the db specified while creating tasks but the 
> > recording just hangs there even though i started it for 20s. can someone 
> > help me?
> 
> 
> 
> kapacitor record stream -task alert4  -duration 20s
> 
> 
> 
> --
> 
> Remember to include the version number!
> 
> ---
> 
> You received this message because you are subscribed to the Google Groups 
> "InfluxData" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> 
> To post to this group, send email to [email protected].
> 
> Visit this group at https://groups.google.com/group/influxdb.
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/influxdb/2c7e3f9d-3bf4-4605-8e1c-a7fc7e4f6ff9%40googlegroups.com.
> 
> 
> 
> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> 
> 
> -- 
> 
> 
> Sean Beckett
> Director of Support and Professional Services
> InfluxDB

the alert4 task was defined as 

kapacitor define "alert4" -type stream -tick alert2.tick -dbrp 
temperature_db.default

//alert2.tick
stream
|from().measurement('temperature')
    |alert()
        .crit(lambda: "value" > 30)
.log('/var/log/alerts.log')

Now, when the recording starts, following is the output for kapacitor stats 
ingress

kapacitor stats ingress
Database       Retention Policy Measurement    Points Received
_internal      monitor          cq                          20
_internal      monitor          database                    40
_internal      monitor          httpd                       20
_internal      monitor          queryExecutor               20
_internal      monitor          runtime                     20
_internal      monitor          shard                       60
_internal      monitor          subscriber                  80
_internal      monitor          tsm1_cache                  60
_internal      monitor          tsm1_engine                 60
_internal      monitor          tsm1_filestore              60
_internal      monitor          tsm1_wal                    60
_internal      monitor          write                       20
_kapacitor     autogen          edges                       22
_kapacitor     autogen          ingress                    157
_kapacitor     autogen          kapacitor                   10
_kapacitor     autogen          runtime                     10
temperature_db default_rp       temperature                  5


The last row indicating 5 points collected for measurement temperature, and 
when I go ahead and add more measurements via Influx shell, this count also 
increases.

Sample insert statement
INSERT temperature,Station=S1 value=50.9

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/2df88a78-9aee-4c21-b416-0a088f398efe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to