influxdata / influxdata/kapacitor

can kapacitor tickscript read bash environment variable?

Open
#1,761 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

var message = ' nginx active connections is in {{.Level}}, value is {{ index .Fields "value" }} from $HOST'

I want to send alert with $HOST so that we know where is the alert coming from, I think this is the basic requirement for any alerting system, zabbix, cacti, nagios can read environment variable very easily.

Thanks.

Contributor guide

Open the contributing guide

Research direction

No source files, tests, or implementation entry points are named. Start with Kapacitor's TICKscript alert message shown in the issue and investigate how alert templates handle environment variables; done would require a decided approach and documented or tested support for including the host value.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, go
Domain
observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.