You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by pe...@apache.org on 2020/05/25 01:21:14 UTC

[pulsar] branch master updated: Add pulsar proxy metrics (#7015)

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

penghui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 262ec0e7 Add pulsar proxy metrics (#7015)
262ec0e7 is described below

commit 262ec0e747b0af4797d4db069b5a7c7b80d6486b
Author: 冉小龙 <rx...@apache.org>
AuthorDate: Mon May 25 09:20:56 2020 +0800

    Add pulsar proxy metrics (#7015)
    
    Signed-off-by: xiaolong.ran <rx...@apache.org>
    
    Fixes #6896
    
    ### Motivation
    
    - Add pulsar proxy metrics
---
 site2/docs/reference-metrics.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/site2/docs/reference-metrics.md b/site2/docs/reference-metrics.md
index 381520e..7c95836 100644
--- a/site2/docs/reference-metrics.md
+++ b/site2/docs/reference-metrics.md
@@ -15,6 +15,7 @@ Pulsar exposes metrics in Prometheus format that can be collected and used for m
 * [ZooKeeper](#zookeeper)
 * [BookKeeper](#bookkeeper)
 * [Broker](#broker)
+* [Proxy](#proxy)
 
 ## Overview
 
@@ -321,6 +322,21 @@ All the consumer metrics are labelled with the following labels:
 | pulsar_consumer_msg_throughput_out | Gauge | The total message dispatch throughput for a consumer (bytes/second). |
 | pulsar_consumer_available_permits | Gauge | The available permits for for a consumer. |
 
+# Proxy
+
+All the proxy metrics are labelled with the following labels:
+
+- *cluster*: `cluster=${pulsar_cluster}`. `${pulsar_cluster}` is the cluster name that you configured in `broker.conf`.
+- *kubernetes_pod_name*: `kubernetes_pod_name=${kubernetes_pod_name}`. `${kubernetes_pod_name}` is the kubernetes pod name.
+
+| Name | Type | Description |
+|---|---|---|
+| pulsar_proxy_active_connections | Gauge | Number of connections currently active in the proxy. |
+| pulsar_proxy_new_connections | Counter | Counter of connections being opened in the proxy. |
+| pulsar_proxy_rejected_connections | Counter | Counter for connections rejected due to throttling. |
+| pulsar_proxy_binary_ops | Counter | Counter of proxy operations. |
+| pulsar_proxy_binary_bytes | Counter | Counter of proxy bytes. |
+
 ## Monitor
 
 You can [set up a Prometheus instance](https://prometheus.io/) to collect all the metrics exposed at Pulsar components and set up