来自同一服务器的值的不同图

发布于 2025-02-05 06:16:10 字数 1152 浏览 2 评论 0原文

我正在使用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:

Prometheus

InfluxDB

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

大海や 2025-02-12 06:16:10

两者都是同一图。查看Y轴量表。

Both are the same graph. Look at the Y-axis scale.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文