Class MetricNames
Ignite.NET client metrics.
CLI usage example:dotnet-counters monitor --counters Apache.Ignite,System.Runtime --process-id PID
See https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-counters for details.
Code usage example:
var meterListener = new MeterListener();
meterListener.InstrumentPublished = (instrument, listener) =>
{
if (instrument.Meter.Name == MetricNames.MeterName)
{
listener.EnableMeasurementEvents(instrument);
Console.WriteLine($"Instrument enabled: {instrument.Name}");
}
};
meterListener.SetMeasurementEventCallback<long>((instrument, measurement, tags, state) =>
Console.WriteLine($"{instrument.Name}: {measurement}"));
meterListener.SetMeasurementEventCallback<int>((instrument, measurement, tags, state) =>
Console.WriteLine($"{instrument.Name}: {measurement}"));
meterListener.Start();
See https://learn.microsoft.com/en-us/dotnet/core/diagnostics/metrics for details.
public static class MetricNames
- Inheritance
-
MetricNames
- Inherited Members
Fields
All
All metric names.
public static readonly IReadOnlyCollection<string> All
Field Value
BytesReceived
Total number of bytes received.
public const string BytesReceived = "bytes-received"
Field Value
BytesSent
Total number of bytes sent.
public const string BytesSent = "bytes-sent"
Field Value
ConnectionsActive
Total number of currently active connections.
public const string ConnectionsActive = "connections-active"
Field Value
ConnectionsEstablished
Total number of connections established (unlike ConnectionsActive, this metric only goes up).
public const string ConnectionsEstablished = "connections-established"
Field Value
ConnectionsLost
Total number of connections lost.
public const string ConnectionsLost = "connections-lost"
Field Value
ConnectionsLostTimeout
Total number of connections lost due to a timeout.
public const string ConnectionsLostTimeout = "connections-lost-timeout"
Field Value
ContinuousQueryEventsReceived
Total number of continuous query events (rows) received.
public const string ContinuousQueryEventsReceived = "continuous-query-events-received"
Field Value
ContinuousQueryRequestsSent
Total number of continuous query requests sent.
public const string ContinuousQueryRequestsSent = "continuous-query-requests-sent"
Field Value
HandshakesFailed
Total number of failed handshakes (due to version mismatch, auth failure, or other problems).
public const string HandshakesFailed = "handshakes-failed"
Field Value
HandshakesFailedTimeout
Total number of failed handshakes due to a network timeout.
public const string HandshakesFailedTimeout = "handshakes-failed-timeout"
Field Value
MeterName
Meter name.
public const string MeterName = "Apache.Ignite"
Field Value
MeterVersion
Meter version.
public const string MeterVersion = "3.0.0"
Field Value
RequestsActive
Currently active requests (requests being sent to the socket or waiting for response).
public const string RequestsActive = "requests-active"
Field Value
RequestsCompleted
Total number of requests completed (response received).
public const string RequestsCompleted = "requests-completed"
Field Value
RequestsFailed
Total number of failed requests (completed with error or failed to send).
public const string RequestsFailed = "requests-failed"
Field Value
RequestsRetried
Total number of retried requests.
public const string RequestsRetried = "requests-retried"
Field Value
RequestsSent
Total number of requests sent.
public const string RequestsSent = "requests-sent"
Field Value
StreamerBatchesActive
Total number of active (in-memory) data streamer batches.
public const string StreamerBatchesActive = "streamer-batches-active"
Field Value
StreamerBatchesSent
Total number of data streamer batches sent.
public const string StreamerBatchesSent = "streamer-batches-sent"
Field Value
StreamerItemsQueued
Total number of queued data streamer items (rows).
public const string StreamerItemsQueued = "streamer-items-queued"
Field Value
StreamerItemsSent
Total number of data streamer items sent.
public const string StreamerItemsSent = "streamer-items-sent"