12 references to CreateObservableGauge
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
Windows\WindowsContainerSnapshotProvider.cs (4)
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 (2)
87
_ = meter.
CreateObservableGauge
(name: ResourceUtilizationInstruments.ProcessCpuUtilization, observeValue: CpuPercentage);
88
_ = meter.
CreateObservableGauge
(name: ResourceUtilizationInstruments.ProcessMemoryUtilization, observeValue: MemoryPercentage);
System.Net.Quic (6)
System\Net\Quic\NetEventSource.Quic.Counters.cs (6)
50
public static readonly ObservableGauge<long> s_CONN_ACTIVE = s_meter.
CreateObservableGauge
<long>(
56
public static readonly ObservableGauge<long> s_CONN_CONNECTED = s_meter.
CreateObservableGauge
<long>(
74
public static readonly ObservableGauge<long> s_STRM_ACTIVE = s_meter.
CreateObservableGauge
<long>(
146
public static readonly ObservableGauge<long> s_CONN_QUEUE_DEPTH = s_meter.
CreateObservableGauge
<long>(
152
public static readonly ObservableGauge<long> s_CONN_OPER_QUEUE_DEPTH = s_meter.
CreateObservableGauge
<long>(
170
public static readonly ObservableGauge<long> s_WORK_OPER_QUEUE_DEPTH = s_meter.
CreateObservableGauge
<long>(