Enable monitoring service
If you installed the monitoring service using Helm, you can use Helm to enable it as well.
Prerequisites
Ensure the monitoring service is installed.
Enable
To enable the monitoring service component using Helm:
Update your Helm repository.
copy to clipboardhelm repo update
Retrieve all custom values you used during install. Generate a YAML file, replacing the
<namespace>
with your namespace.copy to clipboardhelm get values --namespace <namespace> <release-name> -o yaml > values.yaml
Delete the post-install hook job.
copy to clipboardkubectl 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:copy to clipboardkubectl -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.copy to clipboardhelm upgrade <release-name> <repo-name>/px-central --namespace <namespace> -f values.yaml --set pxlicenseserver.enabled=true
Replacing the following parameters:
<release-name>
: the monitoring service release to enable<repo-name>
: the Portworx Enterprise repository name<namespace>
: the namespace matching your environment