Deploy a minimal Perses server instance with file-based storage.
- A Perses custom resource that the operator reconciles into:
- A Deployment (or StatefulSet) running the Perses server
- A Service exposing the Perses API and UI
- A ConfigMap with the Perses server configuration
# Deploy the Perses server
kubectl apply -f basic/
# Check the Perses resource status
kubectl get perses -n perses-dev
# Check the created pods
kubectl get pods -n perses-dev
# Access the Perses UI
kubectl -n perses-dev port-forward svc/perses-sample 8080:8080Open http://localhost:8080 in your browser.
| Field | Value | Description |
|---|---|---|
metadata.labels |
app.kubernetes.io/instance: perses-sample |
Top-level CR labels used by the operator to match instanceSelector on datasources and dashboards |
spec.metadata.labels |
app.kubernetes.io/instance: perses-sample |
Labels propagated to the managed pods/StatefulSet |
spec.config.database.file |
folder: /perses |
File-based storage using YAML files |
spec.containerPort |
8080 |
Port the Perses server listens on |
spec.logLevel |
info |
Server log verbosity |
Note: The
instanceSelectoron dashboards and datasources matches against the Perses CR's top-levelmetadata.labels, notspec.metadata.labels. Both should include the sameapp.kubernetes.io/instancelabel to ensure proper matching.
Once the Perses server is running:
- Add a datasource to connect to Prometheus
- Create a dashboard to visualize metrics