-
Notifications
You must be signed in to change notification settings - Fork 28
/
setup_monitoring_ubuntu.sh
58 lines (36 loc) · 1.15 KB
/
setup_monitoring_ubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
printf "\n[[[[[ setup_monitoring_ubuntu.sh ]]]]]\n\n"
printf 'Installing NodeJS..\n'
sudo apt update
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt install -y nodejs
printf 'node -v\n'
node -v
printf 'npm --version\n'
npm --version
printf 'Installing yarn..\n'
sudo npm install -g yarn
printf 'yarn --version\n'
sudo yarn --version
printf 'Installing make..\n'
sudo apt update
sudo apt-get install -y build-essential
printf 'make --version\n'
make --version
printf 'Installing vim..\n'
sudo apt update
sudo apt install -y vim
printf 'vim --version\n'
vim --version
printf 'Installing apt-transport-https..\n'
sudo apt-get install -y apt-transport-https
printf 'Installing wget..\n'
sudo apt-get install -y software-properties-common wget
printf 'wget --version\n'
wget --version
printf 'Installing Grafana..\n'
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt-get update
# NOTE(platfowner): Fix grafana version to 8.5.13 for compatibility.
sudo apt-get install -y grafana=8.5.13