-
Notifications
You must be signed in to change notification settings - Fork 65
Metrics
Daniel Blankensteiner edited this page Mar 18, 2022
·
1 revision
DotPulsar support metrics from version 2.3.0 following the guidelines from the OpenTelemetry project.
All that's needed for metrics to work is to add the 'DotPulsar' meter to OpenTelemetry's MeterProviderBuilder.
.ConfigureServices(services =>
{
services.AddOpenTelemetryMetrics(builder =>
{
builder.AddMeter("DotPulsar");
});
})
For more in-depth information about OpenTelemetry for .NET you can read the getting started section and browse the git repository.
Here are the names, descriptions, types, and tags (if any) for the metrics currently implemented.
- dotpulsar.client.count - number of active clients (gauge)
- dotpulsar.connection.count - number of active connections (gauge)
- dotpulsar.reader.count - number of active readers (gauge with 'topic' tag)
- dotpulsar.consumer.count - number of active consumers (gauge with 'topic' tag)
- dotpulsar.producer.count - number of active producers (gauge with 'topic' tag)
- dotpulsar.producer.send.duration - Measures the duration for sending a message (histogram with 'topic' tag)
- dotpulsar.consumer.process.duration - Measures the duration for processing a message (histogram with 'topic' and 'subscription' tags)