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

What is the correct process for removing a service alerting? #1042

Closed
ghost opened this issue Nov 16, 2016 · 5 comments
Closed

What is the correct process for removing a service alerting? #1042

ghost opened this issue Nov 16, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 16, 2016

I have a server that runs nginx service. I want to remove nginx from the server, but the kapacitor still alert. I tried to delete series from influxdb, but it didn't work. What is the correct process for removing a service alerting?

@nathanielc
Copy link
Contributor

@ws816 Can you share your TICKscript?

@ghost
Copy link
Author

ghost commented Nov 17, 2016

I use template to define a task, the template as follow:

var measurement string
var where = lambda: TRUE

var data = stream
  | from()
    .measurement(measurement)
    .where(where)
    .groupBy('host')

var alert = data
  | deadman(0.0, 30s)
    .id('{{ .TaskName }}|{{ index .Tags "host" }}')

alert
  .log('/tmp/deadman.log')

The vars as follow:

{
  "measurement": {"type" : "string", "value" : "procstat" },
  "where": {"type": "lambda", "value": "\"process_name\" == 'nginx'"}
}

@ghost
Copy link
Author

ghost commented Nov 17, 2016

What is the correct process for removing a service alerting? remove series from influxdb?

@nathanielc
Copy link
Contributor

@ws816 Currently the only way to do this is to disable/enable the task. This is because the deadman node doesn't forget any services. There is an open PR #610 to fix this but it has some challenges and we are working on a fix.

@ghost
Copy link
Author

ghost commented Nov 18, 2016

@nathanielc Is there another way to monitor process without using deadman? I think the process monitoring is basic requirement.

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

1 participant