.NET 应用程序中的性能监控/指标 [英] Performance monitoring/metrics in .NET app

查看:58
本文介绍了.NET 应用程序中的性能监控/指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望收集有关我们(例如 80% WinApp)应用程序的性能数据,包括开发人员内部以及客户站点的外部.我们的目标如下:

We want to gather performance data about our (say 80% WinApp) application, both internally in dev, as well as out at customer sites. Our objectives are the following:

  • 应该非常
  • 它应该是轻量级的
  • 它应该允许跟踪/计时&在我们的应用中计算多种不同类型的事件.
  • 它应该能够(有效地)收集大量数据,例如域、计算机名称、用户、操作系统、内存等.
  • 收集的所有数据都应可跨上述所有维度进行分析(一旦传输到我们的内部 BI 数据库).

理想情况下,它还可以在站点范围内或逐个用户的基础上进行相对可配置的控制:

It would also, ideally, be relatively configurable on a site-wide or user-by-user basis to control:

  • 如果甚至收集这些性能指标
  • 收集它们的详细程度
  • 是否向我们报告结果

我们一直计划基本上编写我们自己的系统来完成大部分工作.然后,我们将研究许多不同的持久性"模型,包括性能数据包"的二进制格式、XmlSerialization 和已经是 .NET 框架一部分的跟踪日志记录功能,仅举几例.

We have been planning to essentially write our own system for doing most of this. We are then looking at a number of different "persistence" models, including the Binary Formatting of "performance packets", XmlSerialization and the Trace Logging functionality that is already part of the .NET framework, just to name a few.

在参与此之前,我想仔细检查一下人群"的建议.我已经描述了我们正在尝试做的事情,基本上是我们当前的行动计划 - 但我正在寻找关于如何最好地解决手头问题的任何和所有建议.

Before engaging in this though, I wanted to double check to see what recommendations "the crowd" suggests. I've described what we are trying to do, and essentially our current plan of action - but I'm looking for any and all suggestions about how to best solve the problem at hand.

提前致谢.

推荐答案

看看 Metrics.NET,一个相对较新的项目,应该可以满足大部分这些需求.它是 Java 'metrics' 项目的一个端口.

Have a look at Metrics.NET, a relatively new project that should cover most of these needs. It's a port of Java's 'metrics' project.

(2016 年 3 月添加:)Metrics.NET 项目在长期没有更新后已转移给新人.

(Added March 2016:) The Metrics.NET project has been transferred to new people after a long period of no updates.

这篇关于.NET 应用程序中的性能监控/指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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