为 .Net Core Worker Service 收集指标并将其发送到 Prometheus 的推荐方法是什么?

问题描述 投票:0回答:1

我有一个 .net core 辅助服务,它将在后台运行。我想捕获有关服务健康状况的指标,并且需要由 Prometheus 使用。

我们需要使用默认的 Pull 模型还是 Pushgateway,推荐的方法是什么?

asp.net-core windows-services prometheus worker-service
1个回答
0
投票

您可以使用 prometheus-net 包的独立服务器,这是一个在 dotnet 中使用 Prometheus 的绝佳包,如其 documentation 中所述。

© www.soinside.com 2019 - 2024. All rights reserved.