We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
kapacitor-unit -dir ./tickscript/ -influxdb http://localhost:8086 -kapacitor http://localhost:9092 --tests tests_conf.yaml -logtostderr
cat tickscript/cpu_alert.tick stream |from() .database('telegraf') .retationPolicy('autogen') .measurement('cpu') .where(lambda: "host" == 'ni-77000-0') |alert() .warn(lambda: int("usage_idle") < 70) .log('/tmp/alerts.log')
cat tests_conf.yaml tests: name: Alert cpu: warning description: Task should trigger Warning when usage_idle < 70 task_script: cpu_alert.tick db: telegraf rp: autogen data: - cpu,host=ni-77000-0 usage_idle < 70 expects: warning
The text was updated successfully, but these errors were encountered:
Hey @jcmartins thanks for opening the issue. Could you explain better what is the problem?
Sorry, something went wrong.
No branches or pull requests
kapacitor-unit -dir ./tickscript/ -influxdb http://localhost:8086 -kapacitor http://localhost:9092 --tests tests_conf.yaml -logtostderr
cat tickscript/cpu_alert.tick
stream
|from()
.database('telegraf')
.retationPolicy('autogen')
.measurement('cpu')
.where(lambda: "host" == 'ni-77000-0')
|alert()
.warn(lambda: int("usage_idle") < 70)
.log('/tmp/alerts.log')
cat tests_conf.yaml
tests:
name: Alert
cpu: warning
description: Task should trigger Warning when usage_idle < 70
task_script: cpu_alert.tick
db: telegraf
rp: autogen
data:
- cpu,host=ni-77000-0 usage_idle < 70
expects: warning
The text was updated successfully, but these errors were encountered: