10 references to ResourceUtilizationInstruments
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
Windows\Network\WindowsNetworkMetrics.cs (2)
22var meter = meterFactory.Create(ResourceUtilizationInstruments.MeterName); 31ResourceUtilizationInstruments.SystemNetworkConnections,
Windows\WindowsContainerSnapshotProvider.cs (5)
108var meter = meterFactory.Create(ResourceUtilizationInstruments.MeterName); 112_ = meter.CreateObservableGauge(name: ResourceUtilizationInstruments.ContainerCpuLimitUtilization, observeValue: CpuPercentage); 113_ = meter.CreateObservableGauge(name: ResourceUtilizationInstruments.ContainerMemoryLimitUtilization, observeValue: () => MemoryPercentage(() => _processInfo.GetMemoryUsage())); 116_ = meter.CreateObservableGauge(name: ResourceUtilizationInstruments.ProcessCpuUtilization, observeValue: CpuPercentage); 117_ = meter.CreateObservableGauge(name: ResourceUtilizationInstruments.ProcessMemoryUtilization, observeValue: () => MemoryPercentage(() => _processInfo.GetCurrentProcessMemoryUsage()));
Windows\WindowsSnapshotProvider.cs (3)
84var meter = meterFactory.Create(ResourceUtilizationInstruments.MeterName); 87_ = meter.CreateObservableGauge(name: ResourceUtilizationInstruments.ProcessCpuUtilization, observeValue: CpuPercentage); 88_ = meter.CreateObservableGauge(name: ResourceUtilizationInstruments.ProcessMemoryUtilization, observeValue: MemoryPercentage);