...
Code Block |
---|
sansae@win10pro-worksp:/mnt/c/Users/sansae/Documents/workspaces$ ssh sansae@52.141.35.146 The authenticity of host '52.141.35.146 (52.141.35.146)' can't be established. ECDSA key fingerprint is SHA256:/B/42rOLCrPuMrfHouIgsctsH7dSAjgbOgk7bouoajA. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '52.141.35.146' (ECDSA) to the list of known hosts. sansae@52.141.35.146's password: Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1046-azure x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Apr 27 05:02:04 UTC 2021 System load: 0.39 Processes: 130 Usage of /: 4.5% of 28.90GB Users logged in: 0 Memory usage: 2% IP address for eth0: 10.0.0.4 Swap usage: 0% * Pure upstream Kubernetes 1.21, smallest, simplest cluster ops! https://microk8s.io/ 0 packages can be updated. 0 of these updates are security updates. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. sansae@sansaeubuntu:~$ |
Install Docker on Ubuntu
- https://docs.docker.com/engine/install/ubuntu/
Code Block sansae@sansaeubuntu:~$ docker version Client: Docker Engine - Community Version: 20.10.6 API version: 1.41 Go version: go1.13.15 Git commit: 370c289 Built: Fri Apr 9 22:46:01 2021 OS/Arch: linux/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.6 API version: 1.41 (minimum version 1.12) Go version: go1.13.15 Git commit: 8728dd2 Built: Fri Apr 9 22:44:13 2021 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.4 GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e runc: Version: 1.0.0-rc93 GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec docker-init: Version: 0.19.0 GitCommit: de40ad0 sansae@sansaeubuntu:~$
Git Clone Prometheus
Code Block |
---|
sansae@sansaeubuntu:~$ git version
git version 2.17.1
sansae@sansaeubuntu:~$ git clone https://github.com/in4it/prometheus-course.git
Cloning into 'prometheus-course'...
remote: Enumerating objects: 208, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 208 (delta 0), reused 1 (delta 0), pack-reused 204
Receiving objects: 100% (208/208), 31.64 KiB | 6.33 MiB/s, done.
Resolving deltas: 100% (60/60), done.
sansae@sansaeubuntu:~$ cd prometheus-course/
sansae@sansaeubuntu:~/prometheus-course$
sansae@sansaeubuntu:~/prometheus-course$ ls
flask-prometheus grafana kubernetes scripts spring-boot-prometheus use-cases
sansae@sansaeubuntu:~/prometheus-course$
sansae@sansaeubuntu:~/prometheus-course$ ls -al scripts/
total 68
drwxrwxr-x 2 sansae sansae 4096 Apr 27 09:24 .
drwxrwxr-x 9 sansae sansae 4096 Apr 27 09:24 ..
-rwxrwxr-x 1 sansae sansae 1652 Apr 27 09:24 1-install.sh
-rwxrwxr-x 1 sansae sansae 1084 Apr 27 09:24 2-node-exporter.sh
-rwxrwxr-x 1 sansae sansae 308 Apr 27 09:24 3-install-grafana.sh
-rwxrwxr-x 1 sansae sansae 2353 Apr 27 09:24 4-install-alertmanager.sh
-rwxrwxr-x 1 sansae sansae 1537 Apr 27 09:24 5-install-mailserver.sh
-rwxrwxr-x 1 sansae sansae 1755 Apr 27 09:24 6-cloudwatch-exporter.sh
-rwxrwxr-x 1 sansae sansae 160 Apr 27 09:24 add-flask-app.sh
-rwxrwxr-x 1 sansae sansae 212 Apr 27 09:24 add-spring-boot-app.sh
-rwxrwxr-x 1 sansae sansae 1128 Apr 27 09:24 install-consul-exporter.sh
-rwxrwxr-x 1 sansae sansae 305 Apr 27 09:24 install-docker.sh
-rwxrwxr-x 1 sansae sansae 2323 Apr 27 09:24 mutual-tls.sh
-rwxrwxr-x 1 sansae sansae 299 Apr 27 09:24 register-service.sh
-rwxrwxr-x 1 sansae sansae 765 Apr 27 09:24 reverse-proxy-mutual-tls.sh
-rwxrwxr-x 1 sansae sansae 892 Apr 27 09:24 reverse-proxy.sh
-rwxrwxr-x 1 sansae sansae 831 Apr 27 09:24 start-consul.sh
sansae@sansaeubuntu:~/prometheus-course$ |