10 references to ResourceUtilizationInstruments
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
Windows\Network\WindowsNetworkMetrics.cs (2)
22
var meter = meterFactory.Create(
ResourceUtilizationInstruments
.MeterName);
31
ResourceUtilizationInstruments
.SystemNetworkConnections,
Windows\WindowsContainerSnapshotProvider.cs (5)
108
var 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)
84
var meter = meterFactory.Create(
ResourceUtilizationInstruments
.MeterName);
87
_ = meter.CreateObservableGauge(name:
ResourceUtilizationInstruments
.ProcessCpuUtilization, observeValue: CpuPercentage);
88
_ = meter.CreateObservableGauge(name:
ResourceUtilizationInstruments
.ProcessMemoryUtilization, observeValue: MemoryPercentage);