...
- 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:~$
...
Run Prometheus on Docker
Code Block |
---|
sansae@sansaeubuntu:~$ gitdocker 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$ run --name prometheus -d -p 9090:9090 prom/prometheus Unable to find image 'prom/prometheus:latest' locally latest: Pulling from prom/prometheus e5d9363303dd: Pull complete 3430c2c42129: Pull complete 7631b5d56c90: Pull complete 343e06690c48: Pull complete dc32e90574e9: Pull complete a6d5d01cd646: Pull complete 832428480103: Pull complete 83e775ff1768: Pull complete 1ec97f567836: Pull complete 0cdf5b797911: Pull complete eb7d1f2acc9f: Pull complete 541ffe559bd5: Pull complete Digest: sha256:38d40a760569b1c5aec4a36e8a7f11e86299e9191b9233672a5d41296d8fa74e Status: Downloaded newer image for prom/prometheus:latest b9d0d4f676ba5f691596369675cf8adcf773a785dada9026fac295bb3cfa6300 sansae@sansaeubuntu:~$ curl ifconfig.me 52.141.35.146 |