From ec4b68448941c31f2f6c88fe4943bc7e000ea393 Mon Sep 17 00:00:00 2001 From: Dragos Misca Date: Tue, 11 Jun 2024 20:01:29 -0700 Subject: [PATCH] [feat][broker] PIP-264: Add schema registry metrics (#892) --- docs/reference-metrics-opentelemetry.md | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/reference-metrics-opentelemetry.md b/docs/reference-metrics-opentelemetry.md index 8c43f58800e5..d1c7224a0503 100644 --- a/docs/reference-metrics-opentelemetry.md +++ b/docs/reference-metrics-opentelemetry.md @@ -402,3 +402,30 @@ The number of pending topic load operations in the broker. When it reaches thres The maximum number of pending topic load operations in the broker. Equal to "maxConcurrentTopicLoadRequest" defined in broker.conf. * Type: UpDownCounter * Unit: `{operation}` + +### Schema Registry Metrics + +#### pulsar.broker.request.schema_registry.duration +The duration of Schema Registry requests +* Type: Histogram +* Unit: `s` +* Attributes: + * `pulsar.namespace` - The namespace referred by the Schema Registry request + * `pulsar.schema_registry.request` - The Schema Registry request type + * `get` + * `list` + * `put` + * `delete` + * `pulsar.schema_registry.response` - The Schema Registry response type + * `success` + * `failure` + +#### pulsar.broker.operation.schema_registry.compatibility_check.count +The number of Schema Registry compatibility check operations performed by the broker. +* Type: Counter +* Unit: `{operation}` +* Attributes: + * `pulsar.namespace` - The namespace referred by the compatibility check operation + * `pulsar.schema_registry.compatibility_check.response` - The compatibility check response type + * `compatible` + * `incompatible`