From 35995094ffa03fee4e69bf514570f5e3c5e9453d Mon Sep 17 00:00:00 2001 From: daojun Date: Sun, 14 Aug 2022 20:14:15 +0800 Subject: [PATCH 1/4] metadata store metrics doc --- site2/docs/reference-metrics.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/site2/docs/reference-metrics.md b/site2/docs/reference-metrics.md index 91df1b88f3ab6..8f37474afbf5f 100644 --- a/site2/docs/reference-metrics.md +++ b/site2/docs/reference-metrics.md @@ -147,6 +147,7 @@ The following metrics are available for broker: - [Schema metrics](#schema-metrics) - [Offload metrics](#offload-metrics) - [Web service executor metrics](#web-service-executor-metrics) + - [Metadata store metrics](#metadata-store-metrics) - [Pulsar Functions](#pulsar-functions) - [Proxy](#proxy) - [Pulsar SQL Worker](#pulsar-sql-worker) @@ -596,6 +597,24 @@ All the web service executor metrics are labelled with the following labels: | pulsar_web_executor_active_threads | GAUGE | The number of threads performing tasks of pulsar-web thread pool | | pulsar_web_executor_current_threads | GAUGE | The number of threads in the pulsar-web thread pool | +### Metadata store metrics + +All the offload metrics are labelled with the following labels: + +- *cluster*: `cluster=${pulsar_cluster}`. `${pulsar_cluster}` is the cluster name that you configured in `broker.conf`. +- *name*: `name=${metadata-store-x}`. `${name}` is the metadata store name. + +| Name | Type | Description | +|----------------------------------------|-----------|---------------------------------------------------------------------| +| pulsar_metadata_store_get_latency | Histogram | The latency of getting data from metadata store. | +| pulsar_metadata_store_del_latency | Histogram | The latency of deleting data from metadata store. | +| pulsar_metadata_store_put_latency | Histogram | The latency of putting data to metadata store. | +| pulsar_metadata_store_get_failed_total | Counter | The number of failed operations to get data from metadata store. | +| pulsar_metadata_store_del_failed_total | Counter | The number of failed operations to delete data from metadata store. | +| pulsar_metadata_store_put_failed_total | Counter | The number of failed operations to put data to metadata store. | +| pulsar_metadata_store_put_bytes_total | Counter | The number of data put to metadata store. | + + ## Pulsar Functions All the Pulsar Functions metrics are labelled with the following labels: From 4df5894c389003638bfae080cd68275c621f986d Mon Sep 17 00:00:00 2001 From: daojun Date: Fri, 19 Aug 2022 01:22:04 +0800 Subject: [PATCH 2/4] update doc --- site2/docs/reference-metrics.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/site2/docs/reference-metrics.md b/site2/docs/reference-metrics.md index 8f37474afbf5f..bf661a050266e 100644 --- a/site2/docs/reference-metrics.md +++ b/site2/docs/reference-metrics.md @@ -604,15 +604,11 @@ All the offload metrics are labelled with the following labels: - *cluster*: `cluster=${pulsar_cluster}`. `${pulsar_cluster}` is the cluster name that you configured in `broker.conf`. - *name*: `name=${metadata-store-x}`. `${name}` is the metadata store name. -| Name | Type | Description | -|----------------------------------------|-----------|---------------------------------------------------------------------| -| pulsar_metadata_store_get_latency | Histogram | The latency of getting data from metadata store. | -| pulsar_metadata_store_del_latency | Histogram | The latency of deleting data from metadata store. | -| pulsar_metadata_store_put_latency | Histogram | The latency of putting data to metadata store. | -| pulsar_metadata_store_get_failed_total | Counter | The number of failed operations to get data from metadata store. | -| pulsar_metadata_store_del_failed_total | Counter | The number of failed operations to delete data from metadata store. | -| pulsar_metadata_store_put_failed_total | Counter | The number of failed operations to put data to metadata store. | -| pulsar_metadata_store_put_bytes_total | Counter | The number of data put to metadata store. | +| Name | Type | Description | +|----------------------------------------|-----------|--------------------------------------------------------------------------------| +| pulsar_metadata_store_ops_latency | Histogram | The latency of getting/deleting/putting data from/to metadata store. | +| pulsar_metadata_store_ops_failed_total | Counter | The number of failed operations to get/delete/put data from/to metadata store. | +| pulsar_metadata_store_put_bytes_total | Counter | The number of data put to metadata store. | ## Pulsar Functions From 2895dd2399e93b4bd6bc765705ec1b12e4935f0c Mon Sep 17 00:00:00 2001 From: daojun Date: Wed, 14 Sep 2022 00:43:36 +0800 Subject: [PATCH 3/4] update doc --- site2/docs/reference-metrics.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/site2/docs/reference-metrics.md b/site2/docs/reference-metrics.md index bf661a050266e..669d6fb9093f5 100644 --- a/site2/docs/reference-metrics.md +++ b/site2/docs/reference-metrics.md @@ -599,16 +599,15 @@ All the web service executor metrics are labelled with the following labels: ### Metadata store metrics -All the offload metrics are labelled with the following labels: +All the metadata store metrics are labelled with the following labels: - *cluster*: `cluster=${pulsar_cluster}`. `${pulsar_cluster}` is the cluster name that you configured in `broker.conf`. - *name*: `name=${metadata-store-x}`. `${name}` is the metadata store name. -| Name | Type | Description | -|----------------------------------------|-----------|--------------------------------------------------------------------------------| -| pulsar_metadata_store_ops_latency | Histogram | The latency of getting/deleting/putting data from/to metadata store. | -| pulsar_metadata_store_ops_failed_total | Counter | The number of failed operations to get/delete/put data from/to metadata store. | -| pulsar_metadata_store_put_bytes_total | Counter | The number of data put to metadata store. | +| Name | Type | Description | +|----------------------------------------|-----------|----------------------------------------------------------------------------------------------| +| pulsar_metadata_store_ops_latency | Histogram | The latency of getting/deleting/putting data fail/success operations from/to metadata store. | +| pulsar_metadata_store_put_bytes_total | Counter | The number of data put to metadata store. | ## Pulsar Functions From ba1393a751627a7eac212cbcc18f9d2ec26be9cf Mon Sep 17 00:00:00 2001 From: daojun Date: Tue, 20 Sep 2022 20:54:17 +0800 Subject: [PATCH 4/4] update doc --- site2/docs/reference-metrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site2/docs/reference-metrics.md b/site2/docs/reference-metrics.md index a8e9d758bd3d7..226f1aa22eaa4 100644 --- a/site2/docs/reference-metrics.md +++ b/site2/docs/reference-metrics.md @@ -608,7 +608,7 @@ All the web service executor metrics are labeled with the following labels: All the metadata store metrics are labelled with the following labels: - *cluster*: `cluster=${pulsar_cluster}`. `${pulsar_cluster}` is the cluster name that you configured in `broker.conf`. -- *name*: `name=${metadata-store-x}`. `${name}` is the metadata store name. +- *name*: `name=${metadata-store|configuration-metadata-store|state-metadata-store}`. `${name}` is the metadata store name. | Name | Type | Description | |----------------------------------------|-----------|----------------------------------------------------------------------------------------------|