Hi,
I want to have an alert raised when no data were received in the last 3min
but I also want the alert to be stopped as soon as new data arrived again,
I have been playing with deadman but I can't figure out how to make it save
an OK state when data arrive again, here is the script:
stream
|from()
.measurement('invite_delay')
.where(lambda: "host" == 'router' AND "app_name" == 'phone_tester')
|deadman(1.0, 3m)
.id('{{ .TaskName }}/{{ .Name }}')
.stateChangesOnly()
.levelField('level')
.IdField('id')
.DurationField('duration')
|influxDBOut()
.database('metrics')
.measurement('alerts')
.retentionPolicy('raw')
I get a CRITICAL alert when data have been missing for 3min, this works,
but if data start flowing again I get nothing, I kept it running while
doing something else and never got any OK for this alert :(
I tried to find the source for the deadman logic but I couldn't find it, I
have a few questions:
- when data are received again, is the deaman alert supposed to send an OK
state ?
- if it is then when will it send it, will it be as soon as a point arrive
or will there be a delay ?(let's pretend influxdbOut write the alert
immediately for this question)
Where is the dedaman logic defined in the sources ? I am not too familiar
with go but I searched for "Deadman" and what came up were just what looked
like structures and their accessors, not that useful.
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/b954b661-16a9-44d5-9860-730b423437fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.