Observability
grafana
Grafana observability dashboard components for r8s
@r8s/grafana
grafanadashboardsmonitoringobservabilitymetrics
Components (1)
01
Grafana
Grafana deployment with persistent storage. Standalone Grafana (Deployment + Service + PVC) with optional datasource provisioning via ConfigMap and TLS ingress. Dashboards are kept in the PVC; point `datasources` at your Prometheus/Loki instances to have them available on first login.
import { Grafana } from '@r8s/grafana'
export default (
<Grafana
name="grafana"
namespace="monitoring"
host="grafana.example.com"
admin={{ existingSecret: 'grafana-admin-credentials' }}
datasources={[{ name: 'Prometheus', type: 'prometheus', url: 'http://prometheus:9090' }]}
/>
)
namestringOptional—Resource name
namespacestringOptional—Kubernetes namespace
versionstringOptional—Grafana version (default: 10.3.0)
admin{ password?: string, existingSecret?: string }Optional—Admin credentials. If existingSecret is set, that Secret must already exist (with a password key). Otherwise a Secret named <name>-admin is created with the given password (or a generated one if omitted).
datasourcesArrayOptional—Data source configurations
storagestringOptional—Persistent storage (default: 10Gi)
hoststringOptional—Ingress host
tls{ secretName: string, clusterIssuer: string }Optional—TLS config