Create Virtual Machine Ubuntu on Azure
Install Grafana on Ubuntu
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:~$ sansae@sansaeubuntu:~$ sudo apt-get update Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:3 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:4 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB] .......... Fetched 22.7 MB in 4s (5069 kB/s) Reading package lists... Done sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: linux-headers-4.15.0-142 Use 'sudo apt autoremove' to remove it. The following packages will be upgraded: distro-info-data python3-distupgrade ubuntu-release-upgrader-core 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 139 kB of archives. After this operation, 13.3 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Processing triggers for man-db (2.8.3-2ubuntu0.1) ... sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sudo reboot Connection to 52.141.35.146 closed by remote host. Connection to 52.141.35.146 closed. sansae@win10pro-worksp:/mnt/c/Users/sansae/Documents/workspaces$ sansae@win10pro-worksp:/mnt/c/Users/sansae/Documents/workspaces$ sansae@win10pro-worksp:/mnt/c/Users/sansae/Documents/workspaces$ sansae@win10pro-worksp:/mnt/c/Users/sansae/Documents/workspaces$ ssh sansae@52.141.35.146 sansae@52.141.35.146's password: Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1046-azure x86_64) .......... Last login: Tue Apr 27 05:02:06 2021 from 20.194.26.13 sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sudo apt-get -y install wget Reading package lists... Done Building dependency tree Reading state information... Done wget is already the newest version (1.19.4-1ubuntu2.2). wget set to manually installed. The following package was automatically installed and is no longer required: linux-headers-4.15.0-142 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. sansae@sansaeubuntu:~$
https://grafana.com/grafana/download?edition=oss&platform=linux
sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sudo apt-get install -y adduser libfontconfig1 get https://dl.grafana.com/oss/release/grafana_7.5.4_amd64.deb Reading package lists... Doned64.deb Building dependency tree Reading state information... Done adduser is already the newest version (3.116ubuntu1). adduser set to manually installed. The following package was automatically installed and is no longer required: linux-headers-4.15.0-142 .......... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for libc-bin (2.27-3ubuntu1.4) ... sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ wget https://dl.grafana.com/oss/release/grafana_7.5.4_amd64.deb --2021-04-27 05:14:03-- https://dl.grafana.com/oss/release/grafana_7.5.4_amd64.deb Resolving dl.grafana.com (dl.grafana.com)... 151.101.198.217, 2a04:4e42:2e::729 Connecting to dl.grafana.com (dl.grafana.com)|151.101.198.217|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 52312426 (50M) [application/vnd.debian.binary-package] Saving to: ‘grafana_7.5.4_amd64.deb’ grafana_7.5.4_amd64.deb 100%[=================================================>] 49.89M 13.3MB/s in 5.2s 2021-04-27 05:14:09 (9.54 MB/s) - ‘grafana_7.5.4_amd64.deb’ saved [52312426/52312426] sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sudo dpkg -i grafana_7.5.4_amd64.deb Selecting previously unselected package grafana. (Reading database ... 76959 files and directories currently installed.) Preparing to unpack grafana_7.5.4_amd64.deb ... Unpacking grafana (7.5.4) ... Setting up grafana (7.5.4) ... Adding system user `grafana' (UID 111) ... Adding new user `grafana' (UID 111) with group `grafana' ... Not creating home directory `/usr/share/grafana'. ### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable grafana-server ### You can start grafana-server by executing sudo /bin/systemctl start grafana-server Processing triggers for ureadahead (0.100.0-21) ... Processing triggers for systemd (237-3ubuntu10.46) ... sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ systemctl status grafana-server ● grafana-server.service - Grafana instance Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: http://docs.grafana.org sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sudo systemctl start grafana-server sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ systemctl status grafana-server ● grafana-server.service - Grafana instance Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; vendor preset: enabled) Active: active (running) since Tue 2021-04-27 05:17:36 UTC; 8s ago Docs: http://docs.grafana.org Main PID: 1718 (grafana-server) Tasks: 8 (limit: 4915) CGroup: /system.slice/grafana-server.service └─1718 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.p Apr 27 05:17:40 sansaeubuntu grafana-server[1718]: {"@level":"debug","@message":"datasource: registering query type hand .......... Apr 27 05:17:40 sansaeubuntu grafana-server[1718]: {"@level":"debug","@message":"datasource: registering query type fall Apr 27 05:17:40 sansaeubuntu grafana-server[1718]: t=2021-04-27T05:17:40+0000 lvl=info msg="HTTP Server Listen" logger=h sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sansae@sansaeubuntu:~$ sudo systemctl enable grafana-server Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable grafana-server Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service. sansae@sansaeubuntu:~$