How to get access to kapacitor alert fields down the pipeline?


I want to use output of alert (id, Level) in the pipeline.
When I try to peek into pipeline, it has no alert-specific information:

.crit(lambda: TRUE)

All I can see is the input data into alert, but no alerts id, .Level or message.

How to get them?


Ok, I found.

I need explicitly add them inside the alert:

  .warn(lambda: "x" > 0)
  .warn('Its a warning')

| InfluxDBOut()
      .database(' apocrypha')