如何在 Grafana 中获取对 AWS/RDS 的查询

发布于 2025-01-12 12:19:08 字数 292 浏览 3 评论 0 原文

我有一个在 kubernetes 集群中运行的 grafana 实例。我已经使用相应的凭据设置了 CoudWatch 数据源,并且可以检索一些指标。

我的具体需求是知道我是否可以像 RDS 在 AWS 控制台上的 TOP SQL 中那样检索对数据库(或 SQL 摘要)的查询(https://i.sstatic.net/H6sO4.png)或类似的东西,这样我就可以检查查询性能。

预先非常感谢您。

I have a grafana instance running in a kubernetes cluster. I have set up a CoudWatch Datasource with the corresponding credentials and I can retrieve some metrics.

My specific need is to know if I can retrieve the queries to the DB (or SQL digest) like RDS does in TOP SQL on AWS Console (https://i.sstatic.net/H6sO4.png) or something similar, so I can check the query performance.

Thank you so much in advance.

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

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

发布评论

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

评论(1

萌辣 2025-01-19 12:19:08

您可以通过以下步骤执行此操作:

这样,您就可以在 Grafana 中获取查询,如下所示 CloudWatch Logs 集成示例

如果需要,您还可以使用 CloudWatch Logs 分析/过滤您的 RDS 日志Grafana 中的见解

You can do this with the following steps:

This way, you'll be able to get your queries in Grafana like this CloudWatch Logs integration example.

If you want, you can also analyze/filter your RDS logs using CloudWatch Logs Insights in Grafana.

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