Service Fabric的Azure应用程序见解 [英] Azure Application Insights for Service Fabric

查看:48
本文介绍了Service Fabric的Azure应用程序见解的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Service Fabric上运行了多个服务.我想添加Application Insight进行日志记录.我只是想知道我是否必须为每个微服务添加一个Application Insight资源,或者仅对所有微服务添加一个资源.最佳做法是什么?

I have multiple services running on Service Fabric. I would like to add Application Insight for logging. I'm just wondering whether I have to add an Application Insight resource for each microservice or only one is common for all. What is the best practice?

推荐答案

没有这样的最佳实践.真的要看一些注意事项:

There is no such thing a the best practice for this. It really depends. Some considerations:

  • 定价:根据级别(基本或企业),您将免费获得/包含在基本价格中的大量数据.请参阅文档.因此,在某些情况下,根据流量的多少,您可以通过为每项服务配备专用的AI资源来降低成本.这样,(几乎)免费的用于发送数据的服务的AI资源低于AI定价计划的阈值.
  • 查询:如果您按AI资源划分服务,则很难获得整个系统的概览,因为目前您无法创建跨越多个AI资源的查询.
  • 责任:如果您有多个团队从事多项服务,则可以选择每个团队都拥有AI资源,这样他们就只能对自己负责的部分有深刻的了解.
  • Pricing: depending on the level (basic or enterprise) you will get an amount of data for free / included in the base price. See the docs. So in some cases, depending on the amount of traffic you can reduce costs by having a dedicated AI resource per service. AI resources for services that send data below the threshold of the AI pricing plan are then (almost) free.
  • Querying: if you split up services per AI resource getting an overview of the whole system is difficult since at the moment you cannot create queries spanning multiple AI resources.
  • Responsibility: If you have multiple teams working on multiple services it might be an option to have an AI resource per team so they have a good insight in only the parts they are responsible for.

如果您决定使用共享的AI资源,则可以使用自定义遥测初始化程序之类的选项来包含自定义数据,以进一步标识默认情况下未包含的ASF应用程序或服务正在发送数据.

If you do decide to use a shared AI resource there are options like custom telemetry initializers to include custom data that further identify which ASF application or service is sending the data if it is not included by default.

另请参见将Application Insight添加到现有Azure Service Fabric集群了解有关如何集成AI的更多信息.

See also Add Application Insight to a existing Azure Service Fabric cluster for more info about how to integrate AI.

现在,将数据整合在一起时,您确实可以使用一些其他选项,这些选项可能需要也可能不需要其他服务或配置.例如:

Now, when it comes to bring data together you do have some additional options that may or may not need additional services or configuration. For example:

  • PowerBi:您可以使用仪表板可视化AI资源的数据,请参见 rest api ,您可以创建自己的解决方案,以显示一个或多个数据人工智能资源.
  • PowerBi: You can visualize data of AI resources using dashboards, see https://docs.microsoft.com/en-us/azure/application-insights/app-insights-export-power-bi
  • OMS: Operation Management Suite, See https://blogs.technet.microsoft.com/msoms/2016/09/26/application-insights-connector-in-oms/. As Jesse mentions you can link multiple AI Resources
  • Custom dashboards: Using the rest api you can create your own solution that displays data for one or more AI resources.

这篇关于Service Fabric的Azure应用程序见解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆