Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing value: load15 #1764

Open
zabudskyi opened this issue Jan 18, 2018 · 2 comments
Open

Missing value: load15 #1764

zabudskyi opened this issue Jan 18, 2018 · 2 comments

Comments

@zabudskyi
Copy link

I have load15, disk and ram similar alerts (differences are only in measurement, value name and warn/crit). All alerts work fine (including load15) but I am getting this error in logs

ts=2018-01-18T10:10:37.069Z lvl=error msg="error evaluating expression" service=kapacitor task_master=main task=load15_alert node=eval2 err="missing value: \"load15\""

My config

/etc/kapacitor/load/tasks/load15_alert.tick 
dbrp "telegraf"."autogen"

var warn = 1
var crit = 2
var whereFilter = lambda: TRUE

var data = stream
    |from()
        .measurement('system')
        .groupBy('host')
        .where(whereFilter)
    |eval(lambda: "load15")
        .as('value')

  var trigger = data
      |alert()
          .id('{{ index .Tags "host"}}/load15')
          .crit(lambda: "value" > crit)
          .warn(lambda: "value" > warn)
          .stateChangesOnly()
          .message('{{ .Level }} - {{ index .Tags "host" }} load15 is {{ index .Fields "value" }}')
          .post('http://example.com/api/alert')
          .slack()

When I disable this task, error disappears.
Debian 9
Kapacitor 1.4.0

@hnk
Copy link

hnk commented Feb 28, 2018

Hello all,
I too am running into the same problem. I created the tickscript using chronograph v1.4.1.3

Running on Ubuntu 16.04.3 with kapacitor v1.4.0

@Anderen2
Copy link

Anderen2 commented May 7, 2018

See issue #1217, I believe this is the same thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants