Configure monitoring
OpenEverest integrates with Percona Monitoring and Management (PMM) to monitor your database clusters.
Important
To enable monitoring, you must first create a MonitoringConfig that defines your PMM connection and credentials.
Here are the steps to configure monitoring for your database clusters:
-
Store your PMM username and API key in a Kubernetes Secret. Encode both values in Base64 before adding them to the manifest:
apiVersion: v1kind: Secretmetadata:name: pmm-credentialstype: Opaquedata:username: <YOUR BASE64 ENCODED USERNAME>apiKey: <YOUR BASE64 ENCODED API KEY> -
Define a
MonitoringConfig.Use the secret in a
MonitoringConfigCRD:apiVersion: everest.percona.com/v1alpha1kind: MonitoringConfigmetadata:name: my-monitoring-configspec:type: pmmcredentialsSecretName: pmm-credentialspmm:url: "https://pmm.example.com"image: "percona/pmm-client:2.41.0" # Optional: specify PMM client versionverifyTLS: true # Optional: verify TLS certificates -
Enable Monitoring for a DatabaseCluster.
spec:monitoring:monitoringConfigName: "my-monitoring-config"resources:limits:cpu: "200m"memory: "200Mi"requests:cpu: "100m"memory: "100Mi"