来自同一服务器的值的不同图
我正在使用Grafana测试我的KAFKA服务器的监视方法。目前,我有2个带有2个数据源的仪表板; Prometheus和Impruxdb。但是它们显示的图形彼此略有不同。例如,分别给出了Prometheus和InfluxDB的“字节OUT”图:
Prometheus的指标:sum sum sum sum(topic) !=“”} [5M])))
InfluxDB的指标:
SELECT last("FiveMinuteRate") FROM "BytesOutPerSec" WHERE time >= now() - 6h and time <= now() GROUP BY time(30s) fill(null);
SELECT last("FiveMinuteRate") AS "topic_t1" FROM "BytesOutPerSecPerTopic" WHERE ("typeName" = 'type=BrokerTopicMetrics,name=BytesOutPerSec,topic=t1') AND time >= now() - 6h and time <= now() GROUP BY time(30s) fill(null);
SELECT last("FiveMinuteRate") AS "topic_t2" FROM "BytesOutPerSecPerTopic" WHERE ("typeName" = 'type=BrokerTopicMetrics,name=BytesOutPerSec,topic=t2') AND time >= now() - 6h and time <= now() GROUP BY time(30s) fill(null)
原因是什么?我应该相信哪一个?提前致谢。
I'm testing monitoring methods for my kafka server with grafana. Currently I have 2 dashboards with 2 data sources; Prometheus and InfluxDB. But the graphs they show are slightly different from each other. For example, "Bytes Out" graph for Prometheus and InfluxDB are respectively given:
Metrics for Prometheus: sum without(topic)(rate(kafka_server_brokertopicmetrics_bytesout_total{job="kafka",topic!=""}[5m]))
Metrics for InfluxDB:
SELECT last("FiveMinuteRate") FROM "BytesOutPerSec" WHERE time >= now() - 6h and time <= now() GROUP BY time(30s) fill(null);
SELECT last("FiveMinuteRate") AS "topic_t1" FROM "BytesOutPerSecPerTopic" WHERE ("typeName" = 'type=BrokerTopicMetrics,name=BytesOutPerSec,topic=t1') AND time >= now() - 6h and time <= now() GROUP BY time(30s) fill(null);
SELECT last("FiveMinuteRate") AS "topic_t2" FROM "BytesOutPerSecPerTopic" WHERE ("typeName" = 'type=BrokerTopicMetrics,name=BytesOutPerSec,topic=t2') AND time >= now() - 6h and time <= now() GROUP BY time(30s) fill(null)
What could be the reason? Which one should I trust? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
两者都是同一图。查看Y轴量表。
Both are the same graph. Look at the Y-axis scale.