You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/04/05 15:13:14 UTC

[GitHub] [pulsar] NadirJ opened a new issue, #15032: [Monitoring - Broker] - Need a metric to track how many consumers are connected and consuming from a given subscription

NadirJ opened a new issue, #15032:
URL: https://github.com/apache/pulsar/issues/15032

   **Describe the bug**
   I'm monitoring Pulsar and I would like the ability to monitor how many consumers are connected and subscribing from a given subscription.
   
   Right this metric already exists `pulsar_consumers_count`
    
   It tells how many consumers are connected to a given topic/partition.
   
   If the label `subscription` could be added to this metric then I can correlate it various subscription metrics like
   `pulsar_subscription_back_log` and `pulsar_subscription_msg_rate_out`
   
   
   Specifically, I'm trying to detect "Stuck" Subscriptions and alert on this case when it occurs
   
   Here is the sample prometheus alerting rule I need
     ```
   - name: stuck-subscription
         rules:
         - alert: StuckParitionOrTopic
           expr: pulsar_subscription_back_log > 0 and pulsar_subscription_msg_rate_out == 0 and pulsar_consumers_count > 0
           for: 5m
           labels:
             severity: critical
           annotations:
             description: Subscription for {{ $labels.topic }} appears to be stuck.
             identifier: '{{ $labels.topic }}' 
   ```
   


-- 
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: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] codelipenghui closed issue #15032: [Monitoring - Broker] - Need a metric to track how many consumers are connected and consuming from a given subscription

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #15032: [Monitoring - Broker] - Need a metric to track how many consumers are connected and consuming from a given subscription
URL: https://github.com/apache/pulsar/issues/15032


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] tjiuming commented on issue #15032: [Monitoring - Broker] - Need a metric to track how many consumers are connected and consuming from a given subscription

Posted by GitBox <gi...@apache.org>.
tjiuming commented on issue #15032:
URL: https://github.com/apache/pulsar/issues/15032#issuecomment-1089673588

   @codelipenghui  I’d like to handle the issue


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org