influxdata / influxdata/kapacitor
output of one script would input of another
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
HI Team,
I have two tickscript
1. Host Offline 2. drive missing
var data = stream
|from()
.database('telegraf')
.retentionPolicy('autogen')
.measurement('win_system')
.groupBy(*)
|deadman(1.0, 1200s)
.id('{{ index .Tags "host" }}')
// .message('Server {{ .ID }} is OFFLINE')
.message('host: {{ index .Tags "host"}} ip: {{ index .Tags "IP"}} is OFFLINE')
.hipChat()
.stateChangesOnly()
.log('/tmp/win_HostDownAlert.log')
var data = stream
|from()
.database('telegraf')
.retentionPolicy('autogen')
.measurement('win_disk')
.groupBy(*)
|deadman(1.0, 1200s)
.id('{{ index .Tags "host" }}')
.message('host: {{ index .Tags "host"}} ip: {{ index .Tags "IP"}} drive: {{ index .Tags "instance"}} is OFFLINE')
.hipChat()
.stateChangesOnly()
.log('/tmp/win_PathDownAlert.log')
now I am getting pathDownALert, enev if Host is down.
How can I manage this concept that If host is down then it will not check the pathdown script
Contributor guide
Research direction
Start by comparing the two shown deadman scripts, especially their win_system and win_disk measurements and alert behavior. Read the Kapacitor deadman and stateChangesOnly documentation to determine how host-down state should suppress disk alerts; done means the intended alert sequence is specified and reproducible.
Written by the indexing model from the issue text.
Assessment
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100