Questions tagged [kapacitor]

Kapacitor is InfluxDB's native data processing, alerting and anomaly-detection engine.

Kapacitor is InfluxDB's native data processing engine. It can process both stream and batch data from InfluxDB. Kapacitor lets you plug in your own custom logic or user defined functions to process alerts with dynamic thresholds, match metrics for patterns or compute statistical anomalies.

101 questions
13
votes
4 answers

How to get debug information when developing tick script for kapacitor?

I am wondering if during tickscript development, there is any opportunity to dump the stream state after passing through the processing node (log to the file, stdout)?
8
votes
1 answer

How can I send just one alert with kapacitor if something is down?

I have the following stick script stream |from() .measurement('mymetric_value') |deadman(1.0, 10s) .message('service is down!') .log('/tmp/alerts.log') .email('myemail@company.com') It send an alert every 10 seconds that the…
Balazs Varhegyi
  • 991
  • 1
  • 18
  • 37
6
votes
0 answers

Kapacitor Join not Performing Full Outer Join

I have a TICK script (shown below) with two queries, both performing groupBy on the same tag. The script then joins the two queries on that tag and specifies a full outer join with a fill of 'null'. However Kapacitor seems to be treating it as a…
rbinnun
  • 1,169
  • 2
  • 10
  • 18
6
votes
1 answer

Not able to get alerts when kapacitor configured for remote influxdb node

When I tried localhost in url setting inside influxdb setting of kapacitor.conf then I am able to get the alerts properly. But when I tried to point url to some remote location in infludb configuratin section then I am not able to get any alert et…
Varun
  • 1,159
  • 1
  • 14
  • 19
5
votes
2 answers

Kapacitor .post() HTTP Post to url not sending data

I am using kapacitor to send alert to URL using HTTP POST. Written script is hitting on given url but it is not sending related data to any of given url. Following is my TICK script. stream |from() .measurement('cpu') |alert() …
Mahendra
  • 908
  • 1
  • 18
  • 38
4
votes
0 answers

How to iterate through a string list in kapacitor tick script

How to iterate over a string list in Kapacitor tick script.? var packages = [ 'package1', 'package2' ] for package in packages { //Do Something.. } Is there any lambda expression to do this
surendra
  • 121
  • 1
  • 1
  • 7
3
votes
2 answers

How to query from an Influx database with an absent field?

I have a measurement gathered by telegraf. It has following structure: name: smart_device fieldKey fieldType -------- --------- exit_status integer health_ok boolean read_error_rate integer seek_error_rate integer temp_c …
George Shuklin
  • 6,952
  • 10
  • 39
  • 80
3
votes
1 answer

Can I use Kapacitor to process data before sending it to InfluxDB?

I'm bootstrapping a brand new TICK stack and really loving the whole system overall. . . however, there's one bit about Kapacitor which is puzzling me. If you look at the diagram here: https://www.influxdata.com/time-series-platform/kapacitor/,…
2
votes
0 answers

Workaround for a nested query in Kapactior TICKscript

As far I know there is no possibility to execute nested query in Kapacitor TickScript, so I'm looking for some other way to achieve the same result as I have in InfluxQL query: select count(*) from (SELECT sum("value") FROM…
2
votes
0 answers

if false, do nothing in tickscript

In tickscript the norwal way to do if else is in the following: if(condition, true expression, false expression) However, for the false expression, I want my code to do nothing as in the following: if(condition, true print("that is true"), false…
smsms
  • 27
  • 6
2
votes
0 answers

Missing database and measurements in kapacitor

Kapacitor version is 1.5.4 InfluxDB version is 1.7.6 Deployed influx DB and kapacitor in kubernetes(in 2 different clusters). Not able to view the influxDB database and measurements in kapacitor. All I see are the default ones(kapacitor stats…
SS30723
  • 21
  • 5
2
votes
1 answer

kapacitor not running indicate fail

help my apacitor is not runnning, actually im running influxdb in the same server that kapacitor and telegraf, but my kapacitor don't work kapacitor.service - Time series data processing engine. Loaded: loaded…
fredmanre
  • 111
  • 1
  • 5
2
votes
0 answers

InfluxDB - Kapacitor udf timeout

I am trying to get data from InfluxDB inside a kapcitor udf written in Python using InfluxDBClient. I am able to get data in case the size is very small like 2000 records, but as soon as the size of data goes beyond that it starts failing with below…
2
votes
2 answers

What is a node in TICKscript?

I'm trying learn TICKscript, but official documentation is messy. I understand part about variable declaration and expressions in it. But then there are 'nodes'. What's they are? UPD: I even found their EBNF:…
George Shuklin
  • 6,952
  • 10
  • 39
  • 80
2
votes
1 answer

Kapacitor: How to get Field name in TICK script

I'm trying to create a TICK script via Chronograf and it works nicely. I have some tags set and some fields. I created an Alert tick file for specific field and I can get its value by doing {{ index .Fields "value" }} but I can't get its name...is…
Shvalb
  • 1,835
  • 2
  • 30
  • 60
1
2 3 4 5 6 7