You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/04/15 04:43:32 UTC

[pulsar-site] 01/01: fix: sidebar missing docker and helm in next version

This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch fix/sidebar-missing-some-docs
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 37d63f8856aac3c7405586c3f01a95a851a19844
Author: Li Li <ur...@apache.org>
AuthorDate: Fri Apr 15 12:43:20 2022 +0800

    fix: sidebar missing docker and helm in next version
    
    Signed-off-by: Li Li <ur...@apache.org>
---
 site2/docs/reference-metrics.md                      | 20 ++++++++++++++++++++
 site2/website-next/docs/reference-metrics.md         | 20 ++++++++++++++++++++
 ....md => security-policy-and-supported-versions.md} |  0
 site2/website-next/migrate/migrate-chapter.js        |  2 +-
 site2/website-next/scripts/sync-docs.sh              |  1 +
 site2/website-next/sidebars.json                     | 10 +++++++---
 site2/website/sidebars.json                          |  7 ++++---
 7 files changed, 53 insertions(+), 7 deletions(-)

diff --git a/site2/docs/reference-metrics.md b/site2/docs/reference-metrics.md
index b11f4e7a54..2589d5ca54 100644
--- a/site2/docs/reference-metrics.md
+++ b/site2/docs/reference-metrics.md
@@ -111,6 +111,7 @@ The following metrics are available for broker:
   - [Authentication metrics](#authentication-metrics)
   - [Connection metrics](#connection-metrics)
   - [Jetty metrics](#jetty-metrics)
+  - [Schema metrics](#schema-metrics)
 - [Pulsar Functions](#pulsar-functions)
 - [Proxy](#proxy)
 - [Pulsar SQL Worker](#pulsar-sql-worker)
@@ -495,6 +496,25 @@ All the jetty metrics are labelled with the following labels:
 | jetty_stats_seconds | Gauge | Time in seconds stats have been collected for. |
 | jetty_responses_bytes_total | Counter | Total number of bytes across all responses. |
 
+### Schema metrics
+
+> For a functions-worker running separately from brokers, its schema metrics are only exposed when `includeStandardPrometheusMetrics` is set to `true`.
+
+All the schema metrics are labelled with the following labels:
+
+- *cluster*: `cluster=${pulsar_cluster}`. `${pulsar_cluster}` is the cluster name that you have configured in the `broker.conf` file.
+
+| Name | Type | Description |
+|---|---|---|
+| pulsar_schema_del_ops_failed_count | Counter | Number of failed operations to delete schemas. |
+| pulsar_schema_get_ops_failed_count | Counter | Number of failed operations to get schemas. |
+| pulsar_schema_put_ops_failed_count | Counter | Number of failed operations to send schemas. |
+| pulsar_schema_compatible_count | Counter | Number of compatible schemas. |
+| pulsar_schema_incompatible_count | Counter | Number of incompatible schemas. |
+| pulsar_schema_del_ops_latency | Summary | Latency of successful operations to delete schemas. |
+| pulsar_schema_get_ops_latency | Summary | Latency of successful operations to get schemas. |
+| pulsar_schema_put_ops_latency | Summary | Latency of successful operations to send schemas. |
+
 ## Pulsar Functions
 
 All the Pulsar Functions metrics are labelled with the following labels:
diff --git a/site2/website-next/docs/reference-metrics.md b/site2/website-next/docs/reference-metrics.md
index 683b40d48b..ff15ad5789 100644
--- a/site2/website-next/docs/reference-metrics.md
+++ b/site2/website-next/docs/reference-metrics.md
@@ -107,6 +107,7 @@ The following metrics are available for broker:
   - [Authentication metrics](#authentication-metrics)
   - [Connection metrics](#connection-metrics)
   - [Jetty metrics](#jetty-metrics)
+  - [Schema metrics](#schema-metrics)
 - [Pulsar Functions](#pulsar-functions)
 - [Proxy](#proxy)
 - [Pulsar SQL Worker](#pulsar-sql-worker)
@@ -491,6 +492,25 @@ All the jetty metrics are labelled with the following labels:
 | jetty_stats_seconds | Gauge | Time in seconds stats have been collected for. |
 | jetty_responses_bytes_total | Counter | Total number of bytes across all responses. |
 
+### Schema metrics
+
+> For a functions-worker running separately from brokers, its schema metrics are only exposed when `includeStandardPrometheusMetrics` is set to `true`.
+
+All the schema metrics are labelled with the following labels:
+
+- *cluster*: `cluster=${pulsar_cluster}`. `${pulsar_cluster}` is the cluster name that you have configured in the `broker.conf` file.
+
+| Name | Type | Description |
+|---|---|---|
+| pulsar_schema_del_ops_failed_count | Counter | Number of failed operations to delete schemas. |
+| pulsar_schema_get_ops_failed_count | Counter | Number of failed operations to get schemas. |
+| pulsar_schema_put_ops_failed_count | Counter | Number of failed operations to send schemas. |
+| pulsar_schema_compatible_count | Counter | Number of compatible schemas. |
+| pulsar_schema_incompatible_count | Counter | Number of incompatible schemas. |
+| pulsar_schema_del_ops_latency | Summary | Latency of successful operations to delete schemas. |
+| pulsar_schema_get_ops_latency | Summary | Latency of successful operations to get schemas. |
+| pulsar_schema_put_ops_latency | Summary | Latency of successful operations to send schemas. |
+
 ## Pulsar Functions
 
 All the Pulsar Functions metrics are labelled with the following labels:
diff --git a/site2/website-next/docs/security-versioning-policy.md b/site2/website-next/docs/security-policy-and-supported-versions.md
similarity index 100%
rename from site2/website-next/docs/security-versioning-policy.md
rename to site2/website-next/docs/security-policy-and-supported-versions.md
diff --git a/site2/website-next/migrate/migrate-chapter.js b/site2/website-next/migrate/migrate-chapter.js
index cef5b72d0d..a3ef7f66bf 100644
--- a/site2/website-next/migrate/migrate-chapter.js
+++ b/site2/website-next/migrate/migrate-chapter.js
@@ -79,7 +79,7 @@ const migrate = (version, category, cb) => {
     } else {
       //Temp overrite test
       // categoryMap[category].items = sidebar;
-      categoryMap[category].items.concat(
+      categoryMap[category].items = categoryMap[category].items.concat(
         sidebar.filter((item) => {
           return !categoryMap[category].items.includes(item);
         })
diff --git a/site2/website-next/scripts/sync-docs.sh b/site2/website-next/scripts/sync-docs.sh
index 20f26229d0..a3658394b3 100755
--- a/site2/website-next/scripts/sync-docs.sh
+++ b/site2/website-next/scripts/sync-docs.sh
@@ -4,6 +4,7 @@ ROOT_DIR=$(git rev-parse --show-toplevel)
 cd $ROOT_DIR/../
 
 cp -r pulsar/site2/docs/* pulsar-site/site2/docs
+cp -r pulsar/site2/website/sidebars.json pulsar-site/site2/website/sidebars.json
 cp -r pulsar/site2/website/versioned_docs/* pulsar-site/site2/website/versioned_docs
 cp -r pulsar/site2/website/versioned_sidebars/* pulsar-site/site2/website/versioned_sidebars
 cp -r pulsar/site2/docs/assets/* pulsar-site/site2/website-next/static/assets
diff --git a/site2/website-next/sidebars.json b/site2/website-next/sidebars.json
index 8ad9566287..277aff84ad 100644
--- a/site2/website-next/sidebars.json
+++ b/site2/website-next/sidebars.json
@@ -8,7 +8,9 @@
       "type": "category",
       "label": "Get Started",
       "items": [
-        "standalone"
+        "standalone",
+        "getting-started-docker",
+        "getting-started-helm"
       ]
     },
     {
@@ -152,7 +154,8 @@
         "security-authorization",
         "security-encryption",
         "security-extending",
-        "security-bouncy-castle"
+        "security-bouncy-castle",
+        "security-policy-and-supported-versions"
       ]
     },
     {
@@ -220,7 +223,8 @@
       "items": [
         "develop-tools",
         "develop-load-manager",
-        "develop-plugin"
+        "develop-plugin",
+        "developing-binary-protocol"
       ]
     },
     {
diff --git a/site2/website/sidebars.json b/site2/website/sidebars.json
index a95aead769..ca4d122898 100644
--- a/site2/website/sidebars.json
+++ b/site2/website/sidebars.json
@@ -2,8 +2,8 @@
   "docs": {
     "Get Started": [
       "standalone",
-      "standalone-docker",
-      "kubernetes-helm"
+      "getting-started-docker",
+      "getting-started-helm"
     ],
     "Concepts and Architecture": [
       "concepts-overview",
@@ -94,6 +94,7 @@
     ],
     "Security": [
       "security-overview",
+      "security-policy-and-supported-versions",
       "security-tls-transport",
       "security-tls-authentication",
       "security-tls-keystore",
@@ -147,7 +148,7 @@
     ],
     "Development": [
       "develop-tools",
-      "develop-binary-protocol",
+      "developing-binary-protocol",
       "develop-schema",
       "develop-load-manager",
       "develop-plugin"