I want to raise ETW events from inside a server application to monitor performance.I would like to consume these events in perfMon or a similar tool so as to view the events graphically. Is this possible? (perfView is not available in my work environment, and anyway does not display events graphically)
I can raise events simply enough, I've been using the sample in Ben Watsons "Writing HighPerformance .Net Code" book, but have been unable to view these events in perfMon.exe, when adding a new data collector set .
I added code to the sample create an event-source
if(!EventLog.SourceExists("EtlDemo"))
{
EventLog.CreateEventSource("EtlDemo", "EtlDemoLog");
}
I suspect something more needs to done for the EtlDemo "event trace provider" to be visible to perfMon (and probably Windows Performance Analyzer), but documentation seems sparse. Any ideas?