Skip to main content
apache-pulsar-grafana-dashboard-k8s image added a new billing dashboard from 0.1.0 which includes the
  • Detailed hourly Compute Unit (CU) and Storage Unit (SU) usage snapshots.
  • Compute Unit (CU) and Storage Unit (SU) usage accumulation by day.

How to enable the billing dashboard

The billing dashboard requires data from kube-state-metrics to provide CPU and memory data for Pulsar Pods. So it requires user to install kube-state-metrics in their kubernetes.

Install kube-state-metrics

You can install the kube-state-metrics by
And you can get the kube-state-metrics configuration example at kube-state-metrics.yaml

Add extra Prometheus scrape in sn-platform

By default the Prometheus in the sn-platform chart won’t scrape the kube-state-metrics metrics, it requires to add an extraScrapeConfigs in the Prometheus to scrape the KSM metrics.
If you install the kube-state-metrics in a different namespace, need to use the installed namespace in kubernetes_sd_configs.namespaces.names