public ThreadPoolStatsCollector( IMetricFactory metricFactory, ICollectorExceptionHandler errorHandler) : base(errorHandler) { WorkerActiveThreadCount = metricFactory.CreateGauge( "dotnet_thread_pool_active_worker_thread_total", "Total number of active worker threads in the thread pool"); WorkerRetiredThreadCount = metricFactory.CreateGauge( "dotnet_thread_pool_retired_worker_thread_total", "Total number of retired worker threads in the thread pool"); ThreadPoolWorkerThreadAdjustmentThroughput = metricFactory.CreateGauge( "dotnet_thread_pool_worker_thread_adjustment_throughput", "Refers to the collection of information for one sample; that is, a measurement of throughput with a certain concurrency level, in an instant of time."); WorkerThreadPoolAdjustmentReasonCount = metricFactory.CreateCounter( "dotnet_thread_pool_worker_thread_adjustment_reason", "Records a change in control, when the thread injection (hill-climbing) algorithm determines that a change in concurrency level is in place.", false, "reason"); IoThreadCount = metricFactory.CreateGauge( "dotnet_thread_pool_io_thread_total", "Number of I/O threads in the thread pool, including this one"); IoRetiredCount = metricFactory.CreateGauge( "dotnet_thread_pool_retired_io_thread_total", "Number of retired I/O threads."); }
public ExceptionStatsCollector( IMetricFactory metricFactory, ICollectorExceptionHandler errorHandler) : base(errorHandler) { ExceptionCount = metricFactory.CreateCounter( "dotnet_exceptions_total", "Count of exceptions broken down by type", false, "type"); }
public ContentionStatsCollector( IMetricFactory metricFactory, ICollectorExceptionHandler errorHandler) : base(errorHandler) { ContentionSecondsTotal = metricFactory .CreateGauge( "dotnet_contention_seconds_total", "The total amount of time spent contending locks"); ContentionTotal = metricFactory .CreateCounter( "dotnet_contention_total", "The number of locks contended"); }
public ThreadPoolSchedulingStatsCollector( IMetricFactory metricFactory, IMemoryCache memoryCache, ICollectorExceptionHandler errorHandler, RuntimeStatCollectorsConfiguration configuration) : base(errorHandler) { _eventTimer = new EventTimer( memoryCache, EventIdThreadPoolEnqueueWork, EventIdThreadPoolDequeueWork, x => (long)x.Payload[0], "tpoolsched"); ScheduledCount = metricFactory.CreateCounter("dotnet_threadpool_scheduled_total", "The total number of items the thread pool has been instructed to execute"); ScheduleDelay = metricFactory.CreateHistogram( "dotnet_threadpool_scheduling_delay_seconds", "A breakdown of the latency experienced between an item being scheduled for execution on the thread pool and it starting execution.", buckets: configuration.HistogramBuckets); }
public GcStatsCollector( IMetricFactory metricFactory, IMemoryCache memoryCache, ICollectorExceptionHandler errorHandler, RuntimeStatCollectorsConfiguration configuration) : base(errorHandler) { _memoryCache = memoryCache; _eventTimer = new EventTimer( memoryCache, GCStart_V1, GCEnd_V1, x => Convert.ToInt64(x.Payload[0]), "gc"); GcReasons = metricFactory.CreateCounter( "dotnet_gc_reason_total", "A tally of all the reasons that lead to garbage collections being run", false, "gc_gen", "gc_reason", "gc_type"); GcDuration = metricFactory.CreateHistogram( "dotnet_gc_duration", "The amount of time spent running garbage collections", false, configuration.HistogramBuckets, "gc_gen", "gc_reason", "gc_type"); GcHeapSizeInBytes = metricFactory.CreateGauge( "dotnet_gc_heap_size_bytes", "The current size of all heaps (only updated after a garbage collection)", false, "gc_gen"); LargeObjectAllocationTypeTrigger = metricFactory.CreateCounter( "dotnet_gc_loh_type_trigger_total", "Objects that triggered Large Object Heap allocation", false, "type_name"); }
public ThreadPoolSchedulingStatsCollector( IMetricFactory metricFactory, IMemoryCache memoryCache, ICollectorExceptionHandler errorHandler) : this(metricFactory, memoryCache, errorHandler, RuntimeStatCollectorsConfiguration.Default) { }
protected FrameworkStatsCollectorBase(ICollectorExceptionHandler errorHandler) : base(errorHandler) { }
protected StatsCollectorBase(ICollectorExceptionHandler errorHandler) { _errorHandler = errorHandler; EventSourceCreated += OnEventSourceCreated; }
protected RuntimeStatsCollectorBase(ICollectorExceptionHandler errorHandler) : base(errorHandler) { }