Prometheus& Grafana-不使用Azure监视工具,监视或刮擦Azure应用程序服务的指标

发布于 2025-02-13 04:47:56 字数 270 浏览 1 评论 0原文

是否可以直接将Azure App Services与Prometheus集成。我们需要刮擦Azure应用程序服务中托管的应用程序/设备的指标。 我们可以启用App Insight或Azure监视工具,并直接将其与Grafana集成,但在这里我们要通过Azure Monitoring工具进行。

Azure App Service是PAAS,我们无法直接安装任何Prometheus代理。我想知道,是否有一些方法可以从这些设备/框中收集指标来监视系统的健康状况。

任何建议/解决方案都将很高兴知道。

Is there way to integrate azure app services with the Prometheus directly. We need to scrape the metrics of applications/devices hosted in the azure app service.
We can enable the app insight or azure monitoring tool and integrate them with the Grafana directly but here we want to by pass the azure monitoring tools.

Azure app service is paas and there is no way we can install any Prometheus agents directly. I wonder, if there are some ways to collect the metrics from those devices/box to monitor the health of the system.

Any suggestions/solutions would be great to know.

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

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

发布评论

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

评论(1

唠甜嗑 2025-02-20 04:47:56

您的应用程序是Azure的负载平衡器后面吗?从普罗米修斯的角度来看,这不是理想的选择。它旨在直接访问该实例。

我看到的方式有2个选项。

  • 使用OpentElemetry收集器刮擦您的指标,然后通过远程写入出口商将其导出到Prometheus实例
  • 或使用OTLP功能,并通过OTLP Exporter发送指标,

无论哪种方式,您都需要将Prometheus Endpoint展示。您可能需要考虑这一点。

Is your app behind a load balancer in azure? If yes this isn't ideal from a Prometheus perspective. Its designed to have access to the instance directly.

The way I see it you have 2 options.

  • Use OpenTelemetry collector to scrape your metrics and then export them to your Prometheus instance via the remote write exporter
  • Or use the OTLP feature and send the metrics via the OTLP exporter

Either way you will need to expose a Prometheus endpoint that can be written to. Which may be something you'll need to consider.

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