/// <summary>
 /// Register all pre-defined performance counters as Gauge metrics.
 /// This includes System Counters, CLR Global Counters and CLR App Counters.
 /// </summary>
 public static MetricsConfig WithAllCounters(this MetricsConfig config, string systemContext = DefaultMachineCountersContext,
                                             string applicationContext = DefaultApplicationCountersContext)
 {
     return(config.WithSystemCounters(systemContext)
            .WithAppCounters(applicationContext));
 }
Esempio n. 2
0
 /// <summary>
 /// Register all pre-defined performance counters as Gauge metrics.
 /// This includes System Counters, CLR Global Counters and CLR App Counters.
 /// </summary>
 public static MetricsConfig WithAllCounters(this MetricsConfig config)
 {
     return(config.WithSystemCounters()
            .WithCLRGlobalCounters()
            .WithCLRAppCounters());
 }
 /// <summary>
 /// Register all pre-defined performance counters as Gauge metrics.
 /// This includes System Counters, CLR Global Counters and CLR App Counters.
 /// </summary>
 public static MetricsConfig WithAllCounters(this MetricsConfig config, string systemContext = "Machine", string applicationContext = "Application")
 {
     return(config.WithSystemCounters(systemContext)
            .WithCLRGlobalCounters(systemContext)
            .WithCLRAppCounters(applicationContext));
 }