influxdata / influxdata/kapacitor
Alerta origin() don't render templated value
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
Example TICK fragment:
```
.alert()
.alerta()
.event('{{ index .Tags "host" }}')
.origin('{{ index .Tags "host" }}')
```
Output:
``` yaml
event: hostname.tld
origin: {{ index .Tags "host" }}
```
Kapacitor don't replace `'{{ index .Tags "host" }}'` to tag "host" value and send raw string.
Other alerta options templated correctly.
Kapacitor 1.5.0-1, Ubuntu 18.04
Contributor guide
Research direction
Start by reproducing the provided TICK fragment on Kapacitor 1.5.0-1 and compare how the templated event and origin values are rendered. Done means origin resolves the host tag value instead of sending the raw template, while the other Alerta options continue to render correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100