Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Markdown Code copy to simplify copying code #37

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions Installation/Grafana/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@

## Add helm repo

`helm repo add grafana https://grafana.github.io/helm-charts`
```javascript
helm repo add grafana https://grafana.github.io/helm-charts
```

## Update helm repo

`helm repo update`
```javascript
helm repo update`
```

## Install helm

`helm install grafana grafana/grafana`
```javascript
helm install grafana grafana/grafana
```

## Expose Grafana Service

`kubectl expose service grafana — type=NodePort — target-port=3000 — name=grafana-ext`
```javascript
kubectl expose service grafana — type=NodePort — target-port=3000 — name=grafana-ext
```
22 changes: 16 additions & 6 deletions Installation/Grafana/ubuntu-debian-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,31 @@

## Install packages

```sudo apt-get install -y apt-transport-https software-properties-common wget```
```javascript
sudo apt-get install -y apt-transport-https software-properties-common wget
```

## Import GPG key

```sudo mkdir -p /etc/apt/keyrings/```
```wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null```
```javascript
sudo mkdir -p /etc/apt/keyrings/
wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null
```

## Add repository for stable release

```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```
```javascript
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
```

## Update the list of available packages

```sudo apt-get update```
```javascript
sudo apt-get update
```

## Install Grafana OSS

```sudo apt-get install grafana```
```javascript
sudo apt-get install grafana
```
19 changes: 12 additions & 7 deletions Installation/Prometheus/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@

## Add helm repo

`helm repo add prometheus-community https://prometheus-community.github.io/helm-charts`
```javascript
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
```

## Update helm repo

`helm repo update`
```javascript
helm repo update
```

## Install helm

`helm install prometheus prometheus-community/prometheus`

```javascript
helm install prometheus prometheus-community/prometheus
```
## Expose Prometheus Service

This is required to access prometheus-server using your browser.

`kubectl expose service prometheus-server --type=NodePort --target-port=9090 --name=prometheus-server-ext`

```javascript
kubectl expose service prometheus-server --type=NodePort --target-port=9090 --name=prometheus-server-ext
```
14 changes: 10 additions & 4 deletions Installation/Prometheus/ubuntu-debian-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@

## Using pre-compiled binaries

```wget https://github.com/prometheus/prometheus/releases/download/v2.51.0/prometheus-2.51.0.linux-amd64.tar.gz```
```javascript
wget https://github.com/prometheus/prometheus/releases/download/v2.51.0/prometheus-2.51.0.linux-amd64.tar.gz
```

## Extracting files

```tar -xvf prometheus-2.51.0-rc.0.linux-amd64.tar.gz```
```javascript
tar -xvf prometheus-2.51.0-rc.0.linux-amd64.tar.gz
```

## Go inside prometheus

```cd prometheus-2.51.0-rc.0.linux-amd64/```
```javascript
cd prometheus-2.51.0-rc.0.linux-amd64/
```

## Run prometheus in background

After you're on the main directory and found out `prometheus`, execute the file

```./prometheus &```
```./prometheus &```
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Both Prometheus and Grafana have a very good documentation

## Pre-Requisite

- Kubernetes Cluster (can be minikube)
- Helm
- Kubernetes Cluster ([can be minikube](https://minikube.sigs.k8s.io/docs/start/?arch=%2Fwindows%2Fx86-64%2Fstable%2F.exe+download))
- [Helm](https://helm.sh/docs/intro/install/)

If you don't have them installed. Follow the below links:

[Install Minikube]("https://minikube.sigs.k8s.io/docs/start/")
[Install Minikube](https://minikube.sigs.k8s.io/docs/start/)

[Install Helm]("https://helm.sh/docs/intro/install/")
[Install Helm](https://helm.sh/docs/intro/install/)

<br></br>

Expand Down