influxdata / influxdata/kapacitor
[Feature Request] allow string template in alert topic property method
Open
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
Assessment
This issue has not been assessed yet.