Skip to content

Instantly share code, notes, and snippets.

@sapphirelin
Last active January 11, 2022 06:45
Show Gist options
  • Save sapphirelin/440b055f670d6b2b954d89ba1b373fa7 to your computer and use it in GitHub Desktop.
Save sapphirelin/440b055f670d6b2b954d89ba1b373fa7 to your computer and use it in GitHub Desktop.
for vRealize Operations
## 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
@sapphirelin
Copy link
Author

串接 prometheus + vRealize Operation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment