influxdata / influxdata/kapacitor
Expose Kapacitor hostname to tasks
Open
in progress
pm/extensibility
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
Currently there is no method for templating the Kapacitor instance's configured hostname in a task. It would be great if you could reference the Kapacitor hostname, similar to `.TaskName` for referencing the name of the task. For example:
```
...
|alert().id('{{ .HostName }}/{{ .TaskName }}/{{ index .Tags "host" }}')
```
This would make it easy to differentiate between different backend Kapacitor instances.
Contributor guide
Assessment
This issue has not been assessed yet.