将时间序列中的间隔设置为 1 秒

发布于 2025-01-10 19:31:36 字数 521 浏览 3 评论 0原文

我正在尝试使用 lucene 查询在 grafana 中显示来自弹性搜索的日志。它总体上有效,但我想将时间序列中的间隔设置为 1 秒,但从 grafana ui 看来我可以设置的最低限制是 10 秒。如何将间隔限制为 1 秒。 lucene 查询是 log.file.path:\/data\/gitlab\/logs\/gitlab-rails\/api_json.log AND fields.environment:product

在此处输入图像描述

<一href="https://i.sstatic.net/izbXj.png" rel="nofollow noreferrer">在此处输入图像描述

I am trying to display logs from elastic search in grafana using the lucene query. It works overall but I will like to set the interval in the time series as 1 second but from the grafana ui it seems the lowest limit I can set is 10 seconds. How do I limit the interval to just 1 second.
The lucene query is log.file.path:\/data\/gitlab\/logs\/gitlab-rails\/api_json.log AND fields.environment:production

enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

疾风者 2025-01-17 19:31:36

实际上,最小值为10sInterval选择框并不是真正的选择框。您可以单击此处,然后可以在那里写入/创建 1s

在此处输入图像描述

您也可以在其他 Grafana 选择框中使用此功能。对于新用户来说,这不是直观的功能。

Actually, that Interval select box, where the minimal value is 10s is not real select box. You can click there and you can write/create 1s there:

enter image description here

You can use this feature in other Grafana select boxes as well. It is just not intuitive feature for new users.

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