I have a C# windows service which listens to a MSMQ and sends each message out as an email.
Since there's no UI, I'd like to offer an ability to monitor this service to see things such as # messages in queue, # emails sent (by message type perhaps), # of errors, etc.
What is the best/recommended way to accomplish this? Is it WMI or performance counters? Is this data viewed using PerfMon or WMI CIM Studio? Does any approach allow one to monitor the service real-time as well as providing historical analysis?
I can dig into the details myself but would appreciate some broad guidance to help demystify this subject.