Hi, daniellee. I install grafana 5.2.1, linked to datasource with Elasticsearch and create Graph and shown liner data. Query is too simple
| check.Status:passing
“{“search_type”:“query_then_fetch”,“ignore_unavailable”:true,“index”:[“consulbeat-isu–2018.07.02”]} {“size”:0,“query”:{“bool”:{“filter”:[{“range”:{”@timestamp":{“gte”:“1530522963384”,“lte”:“1530526563386”,“format”:“epoch_millis”}}},{“query_string”:{“analyze_wildcard”:true,“query”:“check.Status:passing AND !(service.ID:consul)”}}]}},“aggs”:{“3”:{“terms”:{“field”:“service.ID.keyword”,“size”:500,“order”:{“_term”:“desc”},“min_doc_count”:1},“aggs”:{“2”:{“date_histogram”:{“interval”:“10s”,“field”:“@timestamp”,“min_doc_count”:0,“extended_bounds”:{“min”:“1530522963384”,“max”:“1530526563386”},“format”:“epoch_millis”},“aggs”:{}}}}}} "
shows liner graph with value 2. if some service is down, value will be 1
Created Alert:
when avg () of query (A, 20s, now) is below 1,9
with rools:
- nodata : alerting
- error execution : alerting
create fail service, which have value = 1 on graph
add notification on email
try to “Test Rule” but no result
firing:false
state:“alerting”
conditionEvals:“false = false”
timeMs:“8.986ms”
logs:Array[1]
0:Object
message:“Condition: Eval: false, Query Returned No Series (reduced to null/no value)”
data:null
i also trying nightly build “grafana-5.3.0-22954pre1.windows-amd64.zip”, but have no result too