influxdata / influxdata/kapacitor

Expose Kapacitor hostname to tasks

Open
#922 2 comments 0 reactions 1 assignee Claimed by @nathanielc View on GitHub
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

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.