klevy-toast opened a new issue #13863:
URL: https://github.com/apache/pulsar/issues/13863


   **Is your enhancement request related to a problem? Please describe.**
   In our pulsar cluster, we are running into issues due to the number of 
metrics being reported. We would like to disable the 
`exposeTopicLevelMetricsInPrometheus` setting for a subset of our topics that 
have many subscriptions, but keep it on for other topics where we need those 
statistics. Currently, this can only be configured in `broker.conf` as a global 
setting.
   
   **Describe the solution you'd like**
   Add new namespace settings to configure statistic generation, like: 
   - `pulsar-admin namespaces enable-stats topic <namespace>`
   - `pulsar-admin namespaces disable-stats consumer <namespace>`
   - also allow configuration of `producer`, `managed-ledger`, `managed-cursor`
   
   If the metric is disabled in `broker.conf`, then enabling it at a namespace 
level will _not_ override that. The namespace-level flags will default to 
enabled, so that it defaults to however `broker.conf` is set.
   
   **Describe alternatives you've considered**
   - This flag could also be configured at the tenant level. It doesn't seem 
like there are many tenant-level flags though.
   - The settings could be removed from `broker.conf` and only be configured at 
the namespace/tenant level. This may cause issues with backwards compatibility.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


-- 
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-unsubscr...@pulsar.apache.org

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


Reply via email to