Skip to content

CICD-353 · Grafana dashboard provisioning ​

Encyclopedia · Observability and SRE pipelines · All snippets

Previous · CICD-352 · Next · CICD-354

1. Where it fits ​

  • Placement provisioning/dashboards/service.yaml.
  • Prerequisites staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes.
  • Platforms local-lab.

2. Copy the snippet ​

yaml
apiVersion: 1
providers:
  - name: service
    orgId: 1
    type: file
    disableDeletion: true
    options: {path: /var/lib/grafana/dashboards}

3. How it works ​

API version decides which schema and controller can accept the resource. Check the corresponding kind and availability on the target cluster.

4. Verify the result ​

Mount JSON models at the configured directory. Verify dashboards appear with stable UIDs after Grafana starts.

Validation syntax-validated (YAML parse). Status definitions.