Chat Support
Loupe - Log - Monitor - Resolve
Loupe / Developer's Guide / For .NET Core / 6 / 8 / Metrics / Developer's Guide - Metrics - Event Metrics
In This Topic
    Developer's Guide - Metrics - Event Metrics
    In This Topic

    Event Metrics are the most flexible way of capturing metric data in your application.  As long as it's possible to record a sample every time an event occurs you can use Event Metrics to record multiple related values that can then be analyzed in the Loupe Desktop. 

    If it isn't possible to get to the raw events that form the data you want to gather, or they are simply too voluminous to be recorded individually, you can use Sampled Metrics.  Sampled Metrics are designed for situations like tracking Processor Utilization where it's just not feasible to write out the individual events that make up the value you want to track.

    Event Metrics are particularly well suited for multithreaded or stateless applications because they emphasize recording data about each discrete event (like a single database call or web hit) instead of attempting to aggregate data across threads. 

    Designing Event Metrics

    For a generalized approach on how to design and implement event metrics for your application's needs, see Developer's Guide - Metrics - Designing Event Metrics.

    Examples of Event Metrics

    Database Query Performance

    See a complete example of how you can use event metrics to get performance and usage information of all of the database queries in your application in Developer's Guide - Metrics - Database Query Event Metric Example.

    See Also