Рубрики
Без рубрики

Minikube install grafana, prometheus, InluxDB and Telegraf

Install Helm:
download:
https://github.com/helm/helm/releases

Unpack:
tar -zxvf helm-v3.0.0-linux-amd64.tar.gz

Move binary:
mv linux-amd64/helm /usr/local/bin/helm

Check:
helm help

Install Grafana:
helm repo add grafana https://grafana.github.io/helm-charts

helm install grafana grafana/grafana


kubectl expose service grafana --type=NodePort --target-port=3000 --name=grafana-np


to get admin password:
kubectl get secret --namespace default grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

load service:
minikube service grafana-np

Install Prometheus:
Add repo:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

helm install prometheus prometheus-community/prometheus

kubectl expose service prometheus-server --type=NodePort --target-port=9090 --name=prometheus-server-np


load service:
minikube service prometheus-server-np

Install InfluxDB:
Download:
https://marribi.ru/wp-content/uploads/2021/01/influxdb.7z
Unzip
cd inside
kubectl apply -f .

Install Telegraf:
Download:
https://marribi.ru/wp-content/uploads/2021/01/telegraf.7z
Unzip
cd inside
kubectl apply -f .

Рубрики
Без рубрики

VMware vCenter

vCenter 6.5
Forgotten root password reset:
1. Take a snapshot or backup of the vCenter Server Appliance before proceeding.
2. Reboot the vCenter Server Appliance
3. After the VCSA Photon OS starts, press e key to enter the GNU GRUB Edit Menu.
4. Locate the line that begins with the word Linux.
5. Append these entries to the end of the line:
rw init=/bin/bash

Reset root password in VCSA - rw init=/bin/bash

6. Press F10 to continue booting.
7. Run the command:
mount -o remount,rw / 
8. In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):
passwd
9. Unmount the filesystem by running this command:
umount /
10. Reboot the vCenter Server Appliance by running this command:
reboot -f
11. Confirm that you can access the vCenter Server Appliance using the new root password.
12. Remove the snapshot taken in Step 1.

Change vSphere Web (HTML5) Client Session Timeout for VCSA 6.5:
1. Open an SSH session on your VCSA
2. Enable shell
shell.set --enabled True
shell
cd /etc/vmware/vsphere-ui/
vi webclient.properties

3. Navigate to “session.timeout = 120”. Where 120 is the default value in minutes.
4. Delete the default value and enter 0 to never log out the sessions. Or enter the desired value in minutes.
5. Stop and start the vSphere Web Client service:
service-control --stop vsphere-ui
service-control --start vsphere-ui