Skip to content

Commit f64931d

Browse files
committed
add ubuntu installation for grafana and prometheus
1 parent e1850c0 commit f64931d

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Install using APT repository in Ubuntu or Debian
2+
3+
## Install packages
4+
5+
```sudo apt-get install -y apt-transport-https software-properties-common wget```
6+
7+
## Import GPG key
8+
9+
```sudo mkdir -p /etc/apt/keyrings/```
10+
```wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null```
11+
12+
## Add repository for stable release
13+
14+
```echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list```
15+
16+
## Update the list of available packages
17+
18+
```sudo apt-get update```
19+
20+
## Install Grafana OSS
21+
22+
```sudo apt-get install grafana```
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Linux Installation for Prometheus
2+
3+
## Using pre-compiled binaries
4+
5+
```wget https://github.com/prometheus/prometheus/releases/download/v2.51.0/prometheus-2.51.0.linux-amd64.tar.gz```
6+
7+
## Extracting files
8+
9+
```tar -xvf prometheus-2.51.0-rc.0.linux-amd64.tar.gz```
10+
11+
## Go inside prometheus
12+
13+
```cd prometheus-2.51.0-rc.0.linux-amd64/```
14+
15+
## Run prometheus in background
16+
17+
After you're on the main directory and found out `prometheus`, execute the file
18+
19+
```./prometheus &```

0 commit comments

Comments
 (0)