apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.12k stars 3.57k forks source link

Add WebSocket Proxy Prometheus Metrics Endpoint #18545

Open michaeljmarshall opened 1 year ago

michaeljmarshall commented 1 year ago

Search before asking

Motivation

Metrics are essential to all production deployments.

Solution

Expose a metrics endpoint. This will require formatting the metrics, and then exposing them. Typically, these metrics are exposed at the /metrics endpoint.

Alternatives

There is currently and endpoint for /admin/v2/proxy-stats/metrics, but that exposes metrics in a JSON format. It looks like the logic for those metrics could easily be converted into correct Prometheus metrics.

Anything else?

No response

Are you willing to submit a PR?

github-actions[bot] commented 1 year ago

The issue had no activity for 30 days, mark with Stale label.