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:
- 
Update your Helm repository. helm repo update
- 
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
- 
Delete the post-install hook job. kubectl delete job pxcentral-post-install-hook --namespace <namespace>
- 
Remove the pxcentral-prometheus-operatordeployment. Enter the followingkubectl delete deploymentcommand, replacing the value of the<namespace>parameter to match your environment:kubectl -n <namespace> delete deployment pxcentral-prometheus-operator
- 
Run the following helm upgradecommand to enable the monitoring service, using the-fflag to pass the customvalues.yamlfile 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.yamlReplace 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
 noteIf you face any upgrade issues, refer to upgrades with monitoring service