> ## Documentation Index
> Fetch the complete documentation index at: https://docs.streamnative.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pulsar Detector

The Pulsar detector monitors the health of Pulsar clusters. When you need to monitor the distribution latency from message sending to message consumption in one cluster or across clusters, you can use the Pulsar detector. The Pulsar detector enables you to easily integrate with existing monitoring tools like Prometheus, and check the critical metrics in Grafana.

## Enable Detector

To enable the Audit Log on StreamNative Private Cloud, you need to configure them on the `PulsarCoordinator` CR:

```yaml theme={null}
spec:
  detector:
    serviceEndpoint:
      pulsarServiceURL: 'pulsar://brokers-broker-headless:6650'
      webServiceURL: 'http://brokers-broker-headless:8080'
```

## Metrics

Pulsar detector supports the following metrics. You can check the complete list of metrics in Grafana.

| Name                                   | Type    | Description                                                                                                                          |
| -------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| pulsar\_detector\_e2e\_latency\_ms     | Summary | The distribution latency from message sending to message consumption.                                                                |
| pulsar\_detector\_publish\_latency\_ms | Summary | The distribution latency of message sending.                                                                                         |
| pulsar\_detector\_geo\_latency\_ms     | Summary | The distribution latency from message sending to message consumption across clusters.                                                |
| pulsar\_sla\_messaging\_up             | Gauge   | Whether the message publishing service is running.                                                                                   |
| pulsar\_sla\_webservice\_up            | Gauge   | Whether the webservice is running. The value `1` means the webservice is running. The value `0` means the webservice is not running. |
