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

The kapacitor can't alert after the task was reloaded. #1015

Open
ghost opened this issue Nov 3, 2016 · 2 comments
Open

The kapacitor can't alert after the task was reloaded. #1015

ghost opened this issue Nov 3, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 3, 2016

I have 10 nginx servers that are using kapacitor for alerting. The TICKscript as follow:

var data = stream
  |from()
    .measurement('procstat')
    .where("process_name" == 'nginx')
    .groupBy('host')

var alert = data
  |deadman(0.0, 30s)

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

The kapacitor can normally alert after a nginx was dead. But It can't alert after a nginx was dead while the task was reloaded. It's so weird.

If I really want to remove a nginx server in another case, what should I do?

@phemmer
Copy link

phemmer commented Nov 3, 2016

See #744

@docmerlin
Copy link
Contributor

deadman watches for something to go from there to not there for a while. It can't tell which hosts you have if it doesn't receive at least one data point from the host.

one option would be to sideload some points that have the hosts you want to monitor so it can tell what it is supposed to monitor.

https://docs.influxdata.com/kapacitor/v1.5/nodes/sideload_node/

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

2 participants