Comments (7)
Try defining before the reload
kapacitor define -name test_alert -tick test_alert.tick
Hi,
I'm trying to reload my alerts and it doesn't seem to be working.
Please see sequence below.
dev@sesh-dev1:~/alerts$ kapacitor show test_alert
Name: test_alert
Error:
Type: stream
Enabled: true
Databases Retention Policies: ["sesh"."default"]
TICKscript:
stream
// Select just the cpu_usage_idle measurement from our example database.
.from().measurement('DCVolt1')
.alert()
.crit(lambda: "value" < 30 )
// Whenever we get an alert write it to a file.
.log('/tmp/alerts.log')
DOT:
digraph test_alert {
stream0 -> stream1;
stream1 -> alert2;
}
My modified alert
dev@sesh-dev1:~/alerts$ cat test_alert.tick
stream
// Select just the cpu_usage_idle measurement from our example database.
.from().measurement('DCVolt1')
.as("Battery_Voltage")
.alert()
.crit(lambda: "value" < 30 )
// Whenever we get an alert write it to a file.
.log('/tmp/alerts.log')
.slack() //added slack
.email() //added email
dev@sesh-dev1:~/alerts$ kapacitor reload test_alert
dev@sesh-dev1:~/alerts$ kapacitor show test_alert
Name: test_alert
Error:
Type: stream
Enabled: true
Databases Retention Policies: ["sesh"."default"]
TICKscript:
stream
// Select just the cpu_usage_idle measurement from our example database.
.from().measurement('DCVolt1')
.alert()
.crit(lambda: "value" < 30 )
// Whenever we get an alert write it to a file.
.log('/tmp/alerts.log')
DOT:
digraph test_alert {
stream0 -> stream1;
stream1 -> alert2;
}
Nothing in the logs indicating an error.
—
Reply to this email directly or view it on GitHub
#81.
from kapacitor.
Hi,
I already have the task defined.
Are you suggest I re-define it?
from kapacitor.
OK, When I redefined the task and then reloaded it got updated.
We should update the docs accordingly.
from kapacitor.
Hello,
I just upgraded to v0.2
Trying to reload simply hangs now.
from kapacitor.
@jlark I just discovered #86 A restart will fix clear the deadlock, obviously not ideal. I am working on fix now.
from kapacitor.
ok, so simply restart Kapacitord.
I'll give it a shot.
thnks,
from kapacitor.
@jackzampolin #86 has been fixed and a bug fix release was created 0.2.1
from kapacitor.
Related Issues (20)
- impossible to run kapacitor in windows service
- Running kapacitor without connecting to influxdb
- `-dbrp` argument behavior
- Please upgrade flux to 0.191.0 HOT 1
- about deadman rule
- Alerts suddenly start getting inhibited
- kapacitord ignores commands following the `-config` flag HOT 1
- disable a task that generates a lot of alerts takes a very long time HOT 3
- kapacitor memory usage
- Kapacitor 1.7 isn't available through Homebrew HOT 3
- Replace, remove or make configurable - printing non-log output to stdout/stderr
- Group by part of tag
- kapacitor tasks migration
- kapacitor listen 9093
- Alert Data Field Value Integer Type Error HOT 1
- how to configure the deadman function to trigger a warning alert instead of a critical alert in kapacitor
- Failed to link subscription on startup: not implemented: SHOW SUBSCRIPTIONS HOT 1
- Alerts history is empty after creaeting Alert rule .
- unexpected intermediate value transforming data streams
- High Security vulnerability issue in Kapacitor Daemon with Trivy Scan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kapacitor.