我正在做一个小项目,此刻我正面临一个问题!
我正在使用:
我的问题是我有一个grafana仪表板,其中有弹性收集的数据源。在查询中,我具有Metric,可以从中获取主机的平均rx(确实显示图表),并且可以从我的Average rx获得微分指标。但是在我的衍生指标中,它没有显示任何图形。
这是我的查询:
request:Object
url:"api/datasources/proxy/8/_msearch?max_concurrent_shard_requests=5"
method:"POST"
data:"{"search_type":"query_then_fetch","ignore_unavailable":true,"index":"collectd-*"} {"size":0,"query":{"bool":{"filter":[{"range":{"@timestamp":{"gte":1599763052059,"lte":1599806252059,"format":"epoch_millis"}}},{"query_string":{"analyze_wildcard":true,"query":"host:\"DBE-LINZ-XD32\",\"DBE-LINZ-XD32\" AND type:collectd AND plugin:snmp AND collectd_type:if_octets"}}]}},"aggs":{"2":{"date_histogram":{"interval":"30s","field":"@timestamp","min_doc_count":"0","extended_bounds":{"min":1599763052059,"max":1599806252059},"format":"epoch_millis"},"aggs":{"1":{"avg":{"field":"rx","script":{"inline":"_value / 20"}}},"3":{"derivative":{"buckets_path":"1"}}}}}} "
response:Object
took:278
responses:Array[1]
0:Object
您对此有解决方案吗?
我已经尝试了其他时间间隔和其他时间单位,但是它对我没有用!
VallingSki