WCF服务健康监测 [英] WCF service health monitoring

查看:179
本文介绍了WCF服务健康监测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是实现了一个WCF服务,我目前正在研究服务监控选项。我们目前只托管服务的Java服务器团队希望我们有运行所有的时间例子,所以它可以在其生命周期中聚集在该实例的数据,他们说他们会用我们的业务之一,webmon获得的统计信息。但我们每次通话使用,我不认为这会在这个体系结构中运行。

I just implemented a WCF service and I am currently looking at service monitoring options. Our server team that currently hosts only java services wants us to have instances running all the time, so it can gather data in that instance during its lifetime and they said they will use one of our operations with webmon to get statistical information. But we are using per call and I dont think that will work under this architecture.

我想知道是否有一种方式来获得的,在服务上的操作是如何做到在一定的时间的统计数据和webmon提供了另一个操作使用,提供有关其在一定时间内服务表现的整数值, webmon,然后决定天气,以提醒管理员或没有。

I am wondering if there is a way to get the statistics of how an operation in the service did in certain amount of time and provide an another operation for webmon to use that gives an integer value about its performace in certain time period, webmon, then decides weather to alert the admin or not.

我正在考虑分析日志文件来获得的统计数据,但是这可能是一种昂贵的操作,如果做每隔15分钟。

I was considering parsing of log files to get statistics but that might be an expensive operation if done every 15 mins.

如果不是我的选择是对的WCF应用程序的详细自动健康监测?

If not what are my options for detailed automatic health monitoring of wcf applications?

推荐答案

我公司最近同意开放源码(下的 GPL许可证),我们使用的内部监督我们的实时网络服务,并用于生产可用性和响应时间的报告工具。这就是所谓的 ServiceMon ,它可能满足您的需求。

My company very recently agreed to open-source (under the GPL License) the tool that we use internally to monitor our live web services and for producing availability and response time reports. It's called ServiceMon and it may meet your needs.

它可以运行在Windows作为一个独立的应用程序和作品按照该决定要监视的服务操作的一个简单的脚本。例如,要检查一个网页包含一个特定的值,以类似的方式来webmon,你会使用这行:

It runs on Windows as a standalone application and works by following a simple script of operations that dictate the services to be monitored. For example, to check a web page contains a particular value, in a similar manner to webmon, you'd use this line:

http-get "http://www.google.com" must-contain "I'm Feeling Lucky"

在其执行脚本的操作可以很容易地配置为能其处理的顺序,频率

The frequency at which it executes the script operations can be easily configured as can the order which it processes them.

在除监测网页和我们使用ServiceMon跟踪每个服务的可用性统计数据,并产生响应时间统计数据网络服务

In addition to monitoring web pages and web services we use ServiceMon to track availability statistics of each service and to produce response time statistics.

ServiceMon正在使用的插件架构编写,因此您可以使用.NET添加新类型的监测操作。因此,举例来说,如果你的Web服务使用时髦的认证,你可以很容易到实用插件这一点。

ServiceMon is written using a plugin architecture so you can use .NET to add new types of monitoring operations. So, for example, if your web service uses funky authentication you can fairly easily plug this in to the utility.

我希望你觉得它有用,我很想听听你的想法

I hope you find it useful and I'd love to hear your thoughts

免责声明:我公司开发ServiceMon,所以我可能会有点偏:)

Disclaimer: I developed ServiceMon so I may be a little bit biased :)

这篇关于WCF服务健康监测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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