Пример #1
0
 public static void InstallCLRLocksAndThreads()
 {
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "Total # of Contentions", GlobalInstance, ".clr_locks_and_threads.total_number_of_contentions");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "Contention Rate / sec", GlobalInstance, ".clr_locks_and_threads.contention_rate_per_second");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "Current Queue Length", GlobalInstance, ".clr_locks_and_threads.current_queue_length");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "Queue Length Peak", GlobalInstance, ".clr_locks_and_threads.queue_length_peak");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "Queue Length / sec", GlobalInstance, ".clr_locks_and_threads.queue_length_per_second");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "# of current logical Threads", GlobalInstance, ".clr_locks_and_threads.number_of_current_logical_threads");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "# of current physical Threads", GlobalInstance, ".clr_locks_and_threads.number_of_current_physical_threads");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "# of current recognized threads", GlobalInstance, ".clr_locks_and_threads.number_of_current_recognized_threads");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "# of total recognized threads", GlobalInstance, ".clr_locks_and_threads.number_of_total_recognized_threads");
     Metrics.InstallPerformanceCounterGauge(".NET CLR LocksAndThreads", "rate of recognized threads / sec", GlobalInstance, ".clr_locks_and_threads.rate_or_recognized_threads_per_second");
 }
Пример #2
0
 public static void InstallLogicalDisk()
 {
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Current Disk Queue Length", TotalInstance, ".logical_disk.current_disk_queue_length");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk Queue Length", TotalInstance, ".logical_disk.avg_disk_queue_length");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk Read Queue Length", TotalInstance, ".logical_disk.disk_read_queue_length");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk Write Queue Length", TotalInstance, ".logical_disk.disk_write_queue_length");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "% Disk Time", TotalInstance, ".logical_disk.percent_disk_time");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "% Disk Read Time", TotalInstance, ".logical_disk.percent_disk_read_time");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "% Disk Write Time", TotalInstance, ".logical_disk.percent_disk_write_time");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk sec/Transfer", TotalInstance, ".logical_disk.avg_disk_seconds_per_transfer");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk sec/Read", TotalInstance, ".logical_disk.avg_disk_seconds_per_read");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk sec/Write", TotalInstance, ".logical_disk.avg_disk_seconds_per_write");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Disk Transfers/sec", TotalInstance, ".logical_disk.disk_transfers_per_second");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Disk Reads/sec", TotalInstance, ".logical_disk.disk_reads_per_second");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Disk Writes/sec", TotalInstance, ".logical_disk.disk_writes_per_second");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Disk Bytes/sec", TotalInstance, ".logical_disk.disk_bytes_per_second");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Disk Read Bytes/sec", TotalInstance, ".logical_disk.disk_read_bytes_per_second");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Disk Write Bytes/sec", TotalInstance, ".logical_disk.disk_write_bytes_per_second");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk Bytes/Transfer", TotalInstance, ".logical_disk.avg_disk_bytes_per_transfer");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk Bytes/Read", TotalInstance, ".logical_disk.avg_disk_bytes_per_read");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Avg. Disk Bytes/Write", TotalInstance, ".logical_disk.avg_disk_bytes_per_write");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "% Idle Time", TotalInstance, ".logical_disk.percent_idle_time");
     Metrics.InstallPerformanceCounterGauge("LogicalDisk", "Split IO/Sec", TotalInstance, ".logical_disk.split_io_per_second");
 }