Skip to content

Latest commit

 

History

History

basic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Basic Perses Server Deployment

Deploy a minimal Perses server instance with file-based storage.

What This Creates

  • 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

Usage

# 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:8080

Open http://localhost:8080 in your browser.

Key Configuration

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 instanceSelector on dashboards and datasources matches against the Perses CR's top-level metadata.labels, not spec.metadata.labels. Both should include the same app.kubernetes.io/instance label to ensure proper matching.

Next Steps

Once the Perses server is running:

  1. Add a datasource to connect to Prometheus
  2. Create a dashboard to visualize metrics