如何在 Service Fabric 无状态服务中配置性能计数器?
How can I configure the perf counters in a Service Fabric Stateless service?
我查看了门户中的选项以及资源组模板,但找不到自定义此列表的方法。
此外,是否可以添加自定义性能计数器(假设代码已经创建它们)以在服务结构应用程序中进行监视?
今天没有集成的方法可以做到这一点,但可以通过三种方法做到这一点:
- 使用 Application Insights 监控您的应用程序。有一些
有关如何使用非服务的 Application Insights 执行此操作的详细信息
具体面料 here。 GitHub 上还有一个项目显示
如何将 Azure Service Fabric 与 Application Insights 集成。
- 使用 Azure 诊断收集性能计数器。 Service Fabric 在 VM 上 运行,配置诊断以收集来自
可以找到 Azure VM here.
- 使用还可以收集标准和自定义性能计数器的 Operations Management Suite。请参阅下面 post 中的链接(我不允许 post 超过 2 个链接)
您也可以试试这个方法:Setting up Application Insights for your Service Fabric application
我查看了门户中的选项以及资源组模板,但找不到自定义此列表的方法。 此外,是否可以添加自定义性能计数器(假设代码已经创建它们)以在服务结构应用程序中进行监视?
今天没有集成的方法可以做到这一点,但可以通过三种方法做到这一点:
- 使用 Application Insights 监控您的应用程序。有一些 有关如何使用非服务的 Application Insights 执行此操作的详细信息 具体面料 here。 GitHub 上还有一个项目显示 如何将 Azure Service Fabric 与 Application Insights 集成。
- 使用 Azure 诊断收集性能计数器。 Service Fabric 在 VM 上 运行,配置诊断以收集来自 可以找到 Azure VM here.
- 使用还可以收集标准和自定义性能计数器的 Operations Management Suite。请参阅下面 post 中的链接(我不允许 post 超过 2 个链接)
您也可以试试这个方法:Setting up Application Insights for your Service Fabric application