Last active
January 11, 2022 06:45
-
-
Save sapphirelin/440b055f670d6b2b954d89ba1b373fa7 to your computer and use it in GitHub Desktop.
for vRealize Operations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## add charts | |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
## create ns called monitoring | |
kubectl create namespace monitoring | |
## install | |
helm install prometheus prometheus-community/prometheus -n monitoring --values install-prometheus-values.yaml | |
## checked | |
kubectl get pods -n monitoring | |
# grab these for vROPs k8s adapter | |
## Prometheus URL | |
export SERVICE_IP=$(kubectl get svc --namespace monitoring prometheus-server -o jsonpath='{.status.loadBalancer.ingress[0].ip}') | |
echo http://$SERVICE_IP:80 | |
## Master URL | |
kubectl cluster-info | |
## Client Certification Authentication get CA/CC/CK | |
kubectl config view --minify --raw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
串接 prometheus + vRealize Operation