ofek opened a new issue #13924:
URL: https://github.com/apache/pulsar/issues/13924


   **Describe the bug**
   
   - https://pulsar.apache.org/docs/en/next/reference-metrics/#namespace-metrics
   - https://pulsar.apache.org/docs/en/next/reference-metrics/#topic-metrics
   
   The following metrics are duplicated:
   
   ```
   pulsar_subscriptions_count
   pulsar_producers_count
   pulsar_consumers_count
   pulsar_rate_in
   pulsar_rate_out
   pulsar_throughput_in
   pulsar_throughput_out
   pulsar_storage_size
   pulsar_storage_logical_size
   pulsar_storage_backlog_size
   pulsar_storage_offloaded_size
   pulsar_storage_write_rate
   pulsar_storage_read_rate
   pulsar_subscription_delayed
   pulsar_storage_write_latency_le_*
   pulsar_entry_size_le_*
   pulsar_replication_rate_in
   pulsar_replication_rate_out
   pulsar_replication_throughput_in
   pulsar_replication_throughput_out
   pulsar_replication_backlog
   ```
   
   **Expected behavior**
   
   There should be no duplicate metrics
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   ```
   curl -L http://localhost:8080/metrics
   ```
   
   ```yaml
   version: '3'
   
   services:
     pulsar:
       container_name: pulsar
       image: apachepulsar/pulsar:2.9.1
       command:
       - bash
       - -c
       - >
         bin/apply-config-from-env-with-prefix.py BOOKKEEPER_ 
conf/bookkeeper.conf &&
         bin/apply-config-from-env-with-prefix.py BROKER_ conf/broker.conf &&
         bin/apply-config-from-env-with-prefix.py STANDALONE_ 
conf/standalone.conf &&
         exec bin/pulsar standalone
       ports:
       - '6650:6650'
       - '8080:8080'
       environment:
       - BOOKKEEPER_enableStatistics=true
       - BOOKKEEPER_prometheusStatsHttpPort=8080
       - BROKER_exposeTopicLevelMetricsInPrometheus=true
       - BROKER_exposeConsumerLevelMetricsInPrometheus=true
       - BROKER_exposeProducerLevelMetricsInPrometheus=true
       - BROKER_exposeManagedLedgerMetricsInPrometheus=true
       - BROKER_exposeManagedCursorMetricsInPrometheus=true
       - BROKER_exposePublisherStats=true
       - BROKER_exposePreciseBacklogInPrometheus=true
       - BROKER_splitTopicAndPartitionLabelInPrometheus=true
       - STANDALONE_exposeTopicLevelMetricsInPrometheus=true
       - STANDALONE_exposeConsumerLevelMetricsInPrometheus=true
       - STANDALONE_exposeProducerLevelMetricsInPrometheus=true
       - STANDALONE_exposeManagedLedgerMetricsInPrometheus=true
       - STANDALONE_exposeManagedCursorMetricsInPrometheus=true
       - STANDALONE_exposePublisherStats=true
       - STANDALONE_exposePreciseBacklogInPrometheus=true
       - STANDALONE_splitTopicAndPartitionLabelInPrometheus=true
   ```
   
   **Desktop (please complete the following information):**
   
    - OS: Windows 10


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to