health-monitoring

ASP.NET Health Monitoring 404 Event

≯℡__Kan透↙ 提交于 2019-12-10 11:09:36
问题 Does HealthMonitoring have a built-in event that catches 404 errors? I have tried setting up all events (by using webBaseEvent) and I've searched for two days, but I cannot find or trigger an event for a file not found. I could create my own, but was hoping there was a built in event. 回答1: No, it doesn't. You'd have to create a custom event (from webrequesterrorevent) to have HM track it for you. How to: Something like this (from memory) in Application_Error in global.asax - public void

how to define HTTP health check in a consul container for a service on the same host?

眉间皱痕 提交于 2019-12-08 13:22:36
We are using a consul agent on a host that also runs a service. (RabbitMQ) To verify that the service is ready we have defined a curl based health check. however, we are using the registrator to inject this check using env variable. SERVICE_CHECK_SCRIPT=curl hostname :15672/.... problem is, we've also told the consul-agent that its hostname is the same as the host. (We must have this feature since we want to see the correct hostname registered with the consul cluster. When the consul agent runs the health check, it looks for the URL on its own container... this obviously fails... does anybody

how to define HTTP health check in a consul container for a service on the same host?

久未见 提交于 2019-12-08 06:19:11
问题 We are using a consul agent on a host that also runs a service. (RabbitMQ) To verify that the service is ready we have defined a curl based health check. however, we are using the registrator to inject this check using env variable. SERVICE_CHECK_SCRIPT=curl hostname :15672/.... problem is, we've also told the consul-agent that its hostname is the same as the host. (We must have this feature since we want to see the correct hostname registered with the consul cluster. When the consul agent

Understanding heartbeat in ASP.NET health monitoring

痴心易碎 提交于 2019-12-07 15:00:39
问题 Who's triggering the event? What are consequences/benefits of enabling it in <healthMonitoring enabled="true" heartbeatInterval="30"> except it appears every 30 seconds in the logs? Has it anything to do with NLB heartbeat? What interval is better for production use? 回答1: Enabling it in this way in the web.config will cause the Application Domain to raise a WebHeartbeatEvent periodically (in your case every 30 seconds), basically to check if your application is 'still alive' (like checking a

Understanding results from HKSourceQuery, or Sources in general

有些话、适合烂在心里 提交于 2019-12-06 15:58:32
I just did a HKSourceQuery and got some results. When I do a println of the results, I got this: <HKSource:0x156c1520 "Health" (com.apple.Health)>//description of the object How do I use this to make a predicate using the HKQuery.predicateForObjectsFromSource(/* source goes here */) Here is the sample code in Obj-c, NSSortDescriptor *timeSortDesriptor = [[NSSortDescriptor alloc] initWithKey:HKSampleSortIdentifierEndDate ascending:NO]; HKQuantityType *quantityType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierActiveEnergyBurned]; HKSourceQuery *sourceQuery = [

What Python based Dashboard options exist? [closed]

微笑、不失礼 提交于 2019-12-06 09:01:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to create a Dashboard on each server to show it's health and the results of some daily processing. I plan to hook up shell scripts and Python programs to collect the data. Instead of writing a web-based interface, I thought it would be good to use a python based web dashboard that could render the results

Understanding heartbeat in ASP.NET health monitoring

蓝咒 提交于 2019-12-06 03:46:09
Who's triggering the event? What are consequences/benefits of enabling it in <healthMonitoring enabled="true" heartbeatInterval="30"> except it appears every 30 seconds in the logs? Has it anything to do with NLB heartbeat? What interval is better for production use? Enabling it in this way in the web.config will cause the Application Domain to raise a WebHeartbeatEvent periodically (in your case every 30 seconds), basically to check if your application is 'still alive' (like checking a human's heartbeat). You can specify additional rules like this: <healthMonitoring enabled="true"

ASP.NET Logging - log4net or health monitoring?

谁说胖子不能爱 提交于 2019-12-05 04:06:58
I'm looking at a fresh asp.net site in 3.5 that has absolutely no error handling or logging. What are some good options for logging and handling errors? I've used Log4Net on the 1.1 framework but hear there are potentially better options in 3.5. DCNYAM One option is ELMAH. I asked a question about it here: ASP.NET Error Handling . Since then, I have implemented a slightly modified version of it and the logging plus e-mail is great and easy to integrate via the web.config file. We use two options for our logging:- ELMAH for unexpected exception handling NLog for expected, manual (debug, info

WCF Health Monitoring similar to ASP.NET

跟風遠走 提交于 2019-12-04 16:48:34
ASP.NET has a nice feature called Health Monitoring. Once defined in system.web/healthMonitoring section we get very useful web events to log/analyze. Are there any similar means for WCF services that don't use ASP.NET compatibility mode and hosted under IIS7/WAS ? Update: What i've found out is that enabling system.web/healthMonitoring in WCF service's web.config allows to get some of web events: System.Web.HttpRuntime, 1002, "Application is shutting down. Reason: Configuration changed.". No heartbeats and others. I don't understand how that works if ASP.NET is not involved in the process but

What Python based Dashboard options exist? [closed]

[亡魂溺海] 提交于 2019-12-04 14:36:31
I want to create a Dashboard on each server to show it's health and the results of some daily processing. I plan to hook up shell scripts and Python programs to collect the data. Instead of writing a web-based interface, I thought it would be good to use a python based web dashboard that could render the results in various business user and manager friendly formats. What are my options to do this? I am primarily interested in Python RedHat Linux, but other platforms are interesting too. I'm also open to Perl and Ruby based solutions especially if the plugins can be language neutral. Have you