kapacitor icon indicating copy to clipboard operation
kapacitor copied to clipboard

Pushover title template variables

Open m4rcu5 opened this issue 4 years ago • 2 comments

Hi,

It seems that the Pushover alert service does not support template variables in the title parameter.

Example use-case:

state_data  
  |window()
    .period(150m)
    .every(5m)
    .fillPeriod()
  |mode('code')
    .as('state_code')
  |alert()
    .info(lambda: "state_code" <= 3)
    .stateChangesOnly()

    .message('<Detailed alert info goes here>') 

    .pushover()
      .title('{{ .Level }} System Alert: {{ index .Tags "name" }} on {{ index .Tags "cloud" }}')

Would it be possible to support templating in the title parameter?

m4rcu5 avatar Aug 10 '20 15:08 m4rcu5