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-operator
deployment. Enter the followingkubectl delete deployment
command, replacing the value of the<namespace>
parameter to match your environment:kubectl -n <namespace> delete deployment pxcentral-prometheus-operator
Run the following
helm upgrade
command to enable the monitoring service, using the-f
flag to pass the customvalues.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