69 references to PollingCounter
Microsoft.AspNetCore.Hosting (3)
Internal\HostingEventSource.cs (3)
100
_totalRequestsCounter ??= new
PollingCounter
("total-requests", this, () => Volatile.Read(ref _totalRequests))
105
_currentRequestsCounter ??= new
PollingCounter
("current-requests", this, () => Volatile.Read(ref _currentRequests))
110
_failedRequestsCounter ??= new
PollingCounter
("failed-requests", this, () => Volatile.Read(ref _failedRequests))
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionsEventSource.cs (4)
88
_connectionsStartedCounter ??= new
PollingCounter
("connections-started", this, () => Volatile.Read(ref _connectionsStarted))
92
_connectionsStoppedCounter ??= new
PollingCounter
("connections-stopped", this, () => Volatile.Read(ref _connectionsStopped))
96
_connectionsTimedOutCounter ??= new
PollingCounter
("connections-timed-out", this, () => Volatile.Read(ref _connectionsTimedOut))
100
_currentConnectionsCounter ??= new
PollingCounter
("current-connections", this, () => Volatile.Read(ref _currentConnections))
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Infrastructure\KestrelEventSource.cs (8)
314
_totalConnectionsCounter ??= new
PollingCounter
("total-connections", this, () => Volatile.Read(ref _totalConnections))
325
_totalTlsHandshakesCounter ??= new
PollingCounter
("total-tls-handshakes", this, () => Volatile.Read(ref _totalTlsHandshakes))
330
_currentTlsHandshakesCounter ??= new
PollingCounter
("current-tls-handshakes", this, () => Volatile.Read(ref _currentTlsHandshakes))
335
_failedTlsHandshakesCounter ??= new
PollingCounter
("failed-tls-handshakes", this, () => Volatile.Read(ref _failedTlsHandshakes))
340
_currentConnectionsCounter ??= new
PollingCounter
("current-connections", this, () => Volatile.Read(ref _currentConnections))
345
_connectionQueueLengthCounter ??= new
PollingCounter
("connection-queue-length", this, () => Volatile.Read(ref _connectionQueueLength))
350
_httpRequestQueueLengthCounter ??= new
PollingCounter
("request-queue-length", this, () => Volatile.Read(ref _httpRequestQueueLength))
355
_currrentUpgradedHttpRequestsCounter ??= new
PollingCounter
("current-upgraded-requests", this, () => Volatile.Read(ref _currentUpgradedHttpRequests))
Microsoft.Extensions.Caching.Hybrid (11)
Internal\HybridCacheEventSource.cs (11)
208
new
PollingCounter
("total-local-cache-hits", this, () => Volatile.Read(ref _totalLocalCacheHit)) { DisplayName = "Total Local Cache Hits" },
209
new
PollingCounter
("total-local-cache-misses", this, () => Volatile.Read(ref _totalLocalCacheMiss)) { DisplayName = "Total Local Cache Misses" },
210
new
PollingCounter
("total-distributed-cache-hits", this, () => Volatile.Read(ref _totalDistributedCacheHit)) { DisplayName = "Total Distributed Cache Hits" },
211
new
PollingCounter
("total-distributed-cache-misses", this, () => Volatile.Read(ref _totalDistributedCacheMiss)) { DisplayName = "Total Distributed Cache Misses" },
212
new
PollingCounter
("total-data-query", this, () => Volatile.Read(ref _totalUnderlyingDataQuery)) { DisplayName = "Total Data Queries" },
213
new
PollingCounter
("current-data-query", this, () => Volatile.Read(ref _currentUnderlyingDataQuery)) { DisplayName = "Current Data Queries" },
214
new
PollingCounter
("current-distributed-cache-fetches", this, () => Volatile.Read(ref _currentDistributedFetch)) { DisplayName = "Current Distributed Cache Fetches" },
215
new
PollingCounter
("total-local-cache-writes", this, () => Volatile.Read(ref _totalLocalCacheWrite)) { DisplayName = "Total Local Cache Writes" },
216
new
PollingCounter
("total-distributed-cache-writes", this, () => Volatile.Read(ref _totalDistributedCacheWrite)) { DisplayName = "Total Distributed Cache Writes" },
217
new
PollingCounter
("total-stampede-joins", this, () => Volatile.Read(ref _totalStampedeJoin)) { DisplayName = "Total Stampede Joins" },
218
new
PollingCounter
("total-tag-invalidations", this, () => Volatile.Read(ref _totalTagInvalidations)) { DisplayName = "Total Tag Invalidations" },
System.Net.Http (6)
System\Net\Http\HttpTelemetry.AnyOS.cs (6)
51
_startedRequestsCounter ??= new
PollingCounter
("requests-started", this, () => Interlocked.Read(ref _startedRequests))
67
_failedRequestsCounter ??= new
PollingCounter
("requests-failed", this, () => Interlocked.Read(ref _failedRequests))
82
_currentRequestsCounter ??= new
PollingCounter
("current-requests", this, () => -Interlocked.Read(ref _stoppedRequests) + Interlocked.Read(ref _startedRequests))
87
_totalHttp11ConnectionsCounter ??= new
PollingCounter
("http11-connections-current-total", this, () => Interlocked.Read(ref _openedHttp11Connections))
92
_totalHttp20ConnectionsCounter ??= new
PollingCounter
("http20-connections-current-total", this, () => Interlocked.Read(ref _openedHttp20Connections))
97
_totalHttp30ConnectionsCounter ??= new
PollingCounter
("http30-connections-current-total", this, () => Interlocked.Read(ref _openedHttp30Connections))
System.Net.NameResolution (2)
System\Net\NameResolutionTelemetry.cs (2)
33
_lookupsRequestedCounter ??= new
PollingCounter
("dns-lookups-requested", this, () => Interlocked.Read(ref _lookupsRequested))
39
_currentLookupsCounter ??= new
PollingCounter
("current-dns-lookups", this, () => Interlocked.Read(ref _currentLookups))
System.Net.Security (8)
System\Net\Security\NetSecurityTelemetry.cs (8)
59
_totalTlsHandshakesCounter ??= new
PollingCounter
("total-tls-handshakes", this, () => Interlocked.Read(ref _finishedTlsHandshakes))
64
_currentTlsHandshakesCounter ??= new
PollingCounter
("current-tls-handshakes", this, () => -Interlocked.Read(ref _finishedTlsHandshakes) + Interlocked.Read(ref _startedTlsHandshakes))
69
_failedTlsHandshakesCounter ??= new
PollingCounter
("failed-tls-handshakes", this, () => Interlocked.Read(ref _failedTlsHandshakes))
74
_sessionsOpenCounter ??= new
PollingCounter
("all-tls-sessions-open", this, () => Interlocked.Read(ref _sessionsOpen))
79
_sessionsOpenTls10Counter ??= new
PollingCounter
("tls10-sessions-open", this, () => Interlocked.Read(ref _sessionsOpenTls10))
84
_sessionsOpenTls11Counter ??= new
PollingCounter
("tls11-sessions-open", this, () => Interlocked.Read(ref _sessionsOpenTls11))
89
_sessionsOpenTls12Counter ??= new
PollingCounter
("tls12-sessions-open", this, () => Interlocked.Read(ref _sessionsOpenTls12))
94
_sessionsOpenTls13Counter ??= new
PollingCounter
("tls13-sessions-open", this, () => Interlocked.Read(ref _sessionsOpenTls13))
System.Net.Sockets (7)
System\Net\Sockets\SocketsTelemetry.cs (7)
273
_currentOutgoingConnectAttemptsCounter ??= new
PollingCounter
("current-outgoing-connect-attempts", this, () => Interlocked.Read(ref _currentOutgoingConnectAttempts))
277
_outgoingConnectionsEstablishedCounter ??= new
PollingCounter
("outgoing-connections-established", this, () => Interlocked.Read(ref _outgoingConnectionsEstablished))
281
_incomingConnectionsEstablishedCounter ??= new
PollingCounter
("incoming-connections-established", this, () => Interlocked.Read(ref _incomingConnectionsEstablished))
285
_bytesReceivedCounter ??= new
PollingCounter
("bytes-received", this, () => Interlocked.Read(ref _bytesReceived))
289
_bytesSentCounter ??= new
PollingCounter
("bytes-sent", this, () => Interlocked.Read(ref _bytesSent))
293
_datagramsReceivedCounter ??= new
PollingCounter
("datagrams-received", this, () => Interlocked.Read(ref _datagramsReceived))
297
_datagramsSentCounter ??= new
PollingCounter
("datagrams-sent", this, () => Interlocked.Read(ref _datagramsSent))
System.Private.CoreLib (18)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (18)
79
_cpuTimeCounter ??= new
PollingCounter
("cpu-usage", this, RuntimeEventSourceHelper.GetCpuUsage) { DisplayName = "CPU Usage", DisplayUnits = "%" };
80
_workingSetCounter ??= new
PollingCounter
("working-set", this, () => ((double)Environment.WorkingSet / 1_000_000)) { DisplayName = "Working Set", DisplayUnits = "MB" };
81
_gcHeapSizeCounter ??= new
PollingCounter
("gc-heap-size", this, () => ((double)GC.GetTotalMemory(false) / 1_000_000)) { DisplayName = "GC Heap Size", DisplayUnits = "MB" };
85
_gen0BudgetCounter ??= new
PollingCounter
("gen-0-gc-budget", this, () => GC.GetGenerationBudget(0) / 1_000_000) { DisplayName = "Gen 0 GC Budget", DisplayUnits = "MB" };
86
_threadPoolThreadCounter ??= new
PollingCounter
("threadpool-thread-count", this, () => ThreadPool.ThreadCount) { DisplayName = "ThreadPool Thread Count" };
88
_threadPoolQueueCounter ??= new
PollingCounter
("threadpool-queue-length", this, () => ThreadPool.PendingWorkItemCount) { DisplayName = "ThreadPool Queue Length" };
91
_timerCounter ??= new
PollingCounter
("active-timer-count", this, () => Timer.ActiveCount) { DisplayName = "Number of Active Timers" };
92
_fragmentationCounter ??= new
PollingCounter
("gc-fragmentation", this, () => {
97
_committedCounter ??= new
PollingCounter
("gc-committed", this, () => ((double)GC.GetGCMemoryInfo().TotalCommittedBytes / 1_000_000)) { DisplayName = "GC Committed Bytes", DisplayUnits = "MB" };
99
_gcTimeCounter ??= new
PollingCounter
("time-in-gc", this, () => GC.GetLastGCPercentTimeInGC()) { DisplayName = "% Time in GC since last GC", DisplayUnits = "%" };
101
_gen0SizeCounter ??= new
PollingCounter
("gen-0-size", this, () => GC.GetGenerationSize(0)) { DisplayName = "Gen 0 Size", DisplayUnits = "B" };
102
_gen1SizeCounter ??= new
PollingCounter
("gen-1-size", this, () => GC.GetGenerationSize(1)) { DisplayName = "Gen 1 Size", DisplayUnits = "B" };
103
_gen2SizeCounter ??= new
PollingCounter
("gen-2-size", this, () => GC.GetGenerationSize(2)) { DisplayName = "Gen 2 Size", DisplayUnits = "B" };
104
_lohSizeCounter ??= new
PollingCounter
("loh-size", this, () => GC.GetGenerationSize(3)) { DisplayName = "LOH Size", DisplayUnits = "B" };
105
_pohSizeCounter ??= new
PollingCounter
("poh-size", this, () => GC.GetGenerationSize(4)) { DisplayName = "POH (Pinned Object Heap) Size", DisplayUnits = "B" };
106
_assemblyCounter ??= new
PollingCounter
("assembly-count", this, () => Reflection.Assembly.GetAssemblyCount()) { DisplayName = "Number of Assemblies Loaded" };
108
_ilBytesJittedCounter ??= new
PollingCounter
("il-bytes-jitted", this, () => Runtime.JitInfo.GetCompiledILBytes()) { DisplayName = "IL Bytes Jitted", DisplayUnits = "B" };
109
_methodsJittedCounter ??= new
PollingCounter
("methods-jitted-count", this, () => Runtime.JitInfo.GetCompiledMethodCount()) { DisplayName = "Number of Methods Jitted" };
System.Runtime.Caching (2)
System\Runtime\Caching\Counters.cs (2)
93
_counters[(int)CounterName.HitRatio] = new
PollingCounter
("hit-ratio", this,
115
return new
PollingCounter
(name, this, getValue)