influxdata / influxdata/kapacitor

[Feature Request] allow string template in alert topic property method

Open
#2,310 1 comment 0 reactions 1 assignee Assigned to @samhld View on GitHub
enhancement status/long-term
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Hi, Id like to request to add support for templates in AlertNode "[topic](https://github.com/influxdata/kapacitor/blob/698a6bee43285e5fbda0c0eed9bc9386cb8d0e9b/alert.go#L59)" property method like "message" and "id" do

Where tag env = dev

```
alert|
.message('{{ index .Tags "env" }}')
.topic('{{ index .Tags "env" }}')
```
expected: creates a topic with an ID/name of "dev"

Regards,

jeff

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.