dragosvictor commented on code in PR #880: URL: https://github.com/apache/pulsar-site/pull/880#discussion_r1576580042
########## docs/reference-metrics-opentelemetry.md: ########## @@ -8,6 +8,153 @@ Pulsar exposes the following OpenTelemetry metrics. ## Broker +### Topic Messaging metrics + +#### pulsar.broker.topic.subscription.count +The number of Pulsar subscriptions of the topic served by this broker. +* Type: UpDownCounter +* Unit: `{subscription}` + +#### pulsar.broker.topic.producer.count +The number of active producers of the topic connected to this broker. +* Type: UpDownCounter +* Unit: `{producer}` + +#### pulsar.broker.topic.consumer.count +The number of active consumers of the topic connected to this broker. +* Type: UpDownCounter +* Unit: `{consumer}` + +#### pulsar.broker.topic.message.incoming.count +The total number of messages received for this topic. +* Type: Counter +* Unit: `{message}` + +#### pulsar.broker.topic.message.outgoing.count +The total number of messages read from this topic. +* Type: Counter +* Unit: `{message}` + +#### pulsar.broker.topic.message.incoming.size +The total number of messages bytes received for this topic. +* Type: Counter +* Unit: `{byte}` + +#### pulsar.broker.topic.message.outgoing.size +The total number of messages bytes read from this topic. +* Type: Counter +* Unit: `{byte}` + +#### pulsar.broker.topic.publish.rate.limit +The number of times the publish rate limit is triggered. +* Type: Counter +* Unit: `{event}` + +#### pulsar.broker.topic.consumer.msg.ack +The total number of message acknowledgments received for this topic. +* Type: Counter +* Unit: `{ack}` + +#### pulsar.broker.topic.storage.size +The total storage size of the messages in this topic. +* Type: UpDownCounter +* Unit: `{byte}` + +#### pulsar.broker.topic.storage.logical.size +The storage size of topics in the namespace owned by the broker without replicas. +* Type: UpDownCounter +* Unit: `{byte}` + +#### pulsar.broker.topic.storage.backlog.size +The total backlog size of the topics of this topic owned by this broker. +* Type: UpDownCounter +* Unit: `{byte}` + +#### pulsar.broker.topic.storage.offloaded.size +The total amount of the data in this topic offloaded to the tiered storage. +* Type: UpDownCounter +* Unit: `{byte}` + +#### pulsar.broker.topic.storage.backlog.quota.limit.size +The size based backlog quota limit for this topic. +* Type: Gauge +* Unit: `{byte}` + +#### pulsar.broker.topic.storage.backlog.quota.limit.time +The time based backlog quota limit for this topic. +* Type: Gauge +* Unit: `{second}` + +#### pulsar.broker.topic.storage.backlog.quota.eviction.count +The number of times a backlog was evicted since it has exceeded its quota. +* Type: Counter +* Unit: `{eviction}` + +#### pulsar.broker.topic.storage.backlog.age +The age of the oldest unacknowledged message (backlog). +* Type: Gauge +* Unit: `{second}` + +#### pulsar.broker.topic.storage.outgoing +The total message batches (entries) written to the storage for this topic. +* Type: UpDownCounter +* Unit: `{message batch}` + +#### pulsar.broker.topic.storage.incoming +The total message batches (entries) read from the storage for this topic. +* Type: UpDownCounter +* Unit: `{message batch}` + +#### pulsar.broker.topic.compaction.removed.event.count +The total number of removed events of the compaction. +* Type: UpDownCounter +* Unit: `{event}` + +#### pulsar.broker.topic.compaction.succeed.count +The total number of successes of the compaction. +* Type: UpDownCounter +* Unit: `{event}` + +#### pulsar.broker.topic.compaction.failed.count +The total number of failures of the compaction. +* Type: UpDownCounter +* Unit: `{event}` + +#### pulsar.broker.topic.compaction.duration +The total time duration of compaction operations on the topic. +* Type: DoubleUpDownCounter +* Unit: `{second}` + +#### pulsar.broker.topic.compaction.incoming +The total count of bytes read by the compaction process for this topic. +* Type: UpDownCounter +* Unit: `{byte}` + +#### pulsar.broker.topic.compaction.outgoing +The total count of bytes written by the compaction process for this topic. +* Type: UpDownCounter +* Unit: `{byte}` + +#### pulsar.broker.topic.compaction.compacted.entries.count +The total number of compacted entries. +* Type: UpDownCounter +* Unit: `{entry}` + +#### pulsar.broker.topic.compaction.compacted.entries.size +The total size of the compacted entries. +* Type: UpDownCounter +* Unit: `{byte}` + +#### pulsar.broker.topic.transaction +The number of transactions on this topic. +* Type: UpDownCounter Review Comment: This metric has attributes for the tx status ([ref](https://github.com/apache/pulsar/pull/22467/files#diff-e3d8386fc3f9292780771f4eae19d9297637d374244f9c4b3f89b6c0e442e2e3R458-R470)): `active`, `committed`, `aborted`. The latter two can be counters, but not the first one. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org