Skip to main content
Version: 2.7

Enable monitoring service

If you installed the monitoring service using Helm, you can use Helm to enable it as well.

Prerequisites

  • Ensure that Portworx Backup Helm chart is deployed with all the components in running state.

Enable

To enable the monitoring service component using Helm:

  1. Update your Helm repository.

    helm repo update
  2. Retrieve all custom values you used during install. Generate a YAML file, replacing the <namespace> with your namespace.

    helm get values --namespace <namespace> px-central -o yaml > values.yaml
  3. Delete the post-install hook job.

    kubectl delete job pxcentral-post-install-hook --namespace <namespace>
  4. Remove the pxcentral-prometheus-operator deployment. Enter the following kubectl delete deployment command, replacing the value of the <namespace> parameter to match your environment:

    kubectl -n <namespace> delete deployment pxcentral-prometheus-operator
  5. Run the following helm upgrade command to enable the monitoring service, using the -f flag to pass the custom values.yaml file you generated above.

    helm upgrade px-central <repo-name>/px-central --namespace <namespace> --version <version> --set pxmonitor.enabled=true,persistentStorage.enabled=true,persistentStorage.storageClassName=<storage class>,installCRDs=true,pxmonitor.pxCentralEndpoint=<END_POINT>,pxmonitor.sslEnabled=true -f values.yaml

    Replace the following parameters:

    • <repo-name>: the Portworx Enterprise repository name
    • <namespace>: the namespace matching your environment
    • <version>: Portworx Central on-prem version
    • <storage class>: storage class where Portworx Backup is deployed
    • <END_POINT>: IP address of the node where Portworx Central is installed