Skip to main content
Version: main 🚧

Service monitor

Supported Configurations
Running the control plane as a container with:

Enable serviceMonitor when you are using the Prometheus Operator to monitor your vCluster instance. Prometheus handles scraping & aggregating metrics (in the case of high availability), and provides a query engine. Visualization tools such as Grafana can then use Prometheus as a data source to graph / monitor / alert the vCluster control plane.

When enabled, vCluster exposes metrics over HTTPS at a /metrics endpoint.

Set the scrape interval​

controlPlane.serviceMonitor.interval sets how often Prometheus scrapes every endpoint in the service monitor. The default is 30s. Use a longer interval to reduce load on Prometheus when it monitors many clusters, or a shorter one for finer-grained data.

vcluster.yaml
controlPlane:
serviceMonitor:
enabled: true
interval: 60s

Config reference​

For every field under controlPlane.serviceMonitor, see the controlPlane reference.