-
Notifications
You must be signed in to change notification settings - Fork 490
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
Alert data outputs to children nodes #465
Conversation
Does levelTag() work for deadman alerts? I tried this but the points being inserted contain only tags for each of the groupBy tags and the one value field for each point. No "level" tag is attached to the points inserted into InfluxDB. Kapacitor 1.0.0~beta1 (git: master c6f7db5)
|
It does but this script is not sending the deadman alert to InfluxDB but rather the original data selected from the stream Did you mean this?
|
That's exactly right, @nathanielc. Confirmed this works. Thanks and sorry to waste your time with that. While we're here, what would be the easiest way to add a field to the inserted point that's equal to the alert's message? |
@lpalm That is currently not possible without custom code like a UDF. But it is a good idea and would follow the work from this PR well. Feel free to create an issue to track the request. PRs are always welcome ;) |
Following below doc for writing stream or batch data back to Influx: Doesn't seem to be working for me; Here's my TICK script: kapacitor show CQ_engine DOT: query1 [avg_exec_time_ns="0s" batches_queried="0" connect_errors="0" points_queried="0" query_errors="0" ]; influxdb_out2 [avg_exec_time_ns="0s" points_written="0" write_errors="0" ]; Also tried working with stream TICK script: kapacitor show CQ_engine_stream DOT: stream0 [avg_exec_time_ns="0s" ]; from1 [avg_exec_time_ns="0s" ]; window2 [avg_exec_time_ns="0s" ]; mean3 [avg_exec_time_ns="0s" ]; influxdb_out4 [avg_exec_time_ns="0s" points_written="0" write_errors="0" ]; Appreicate your help here. |
@manojgour We try to reserve GitHub Issues for actionable bug reports or feature requests. Please send general questions to the [email protected] mailing list. |
Fixes #93
Alert data can now be consumed directly from within TICKscripts.
For example, let's say we want to store all data that triggered an alert in InfluxDB with a tag
level
containing the level string value (i.e CRITICAL).