Git Product home page Git Product logo

Comments (7)

nathanielc avatar nathanielc commented on August 26, 2024

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.

jlark avatar jlark commented on August 26, 2024

Hi,
I already have the task defined.

Are you suggest I re-define it?

from kapacitor.

jlark avatar jlark commented on August 26, 2024

OK, When I redefined the task and then reloaded it got updated.

We should update the docs accordingly.

from kapacitor.

jlark avatar jlark commented on August 26, 2024

Hello,
I just upgraded to v0.2
Trying to reload simply hangs now.

from kapacitor.

nathanielc avatar nathanielc commented on August 26, 2024

@jlark I just discovered #86 A restart will fix clear the deadlock, obviously not ideal. I am working on fix now.

from kapacitor.

jlark avatar jlark commented on August 26, 2024

ok, so simply restart Kapacitord.

I'll give it a shot.

thnks,

from kapacitor.

nathanielc avatar nathanielc commented on August 26, 2024

@jackzampolin #86 has been fixed and a bug fix release was created 0.2.1

from kapacitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.