Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tauqueeralam42/server-monitoring


https://github.com/tauqueeralam42/server-monitoring

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Monitoring with Grafana, Loki and Prometheus

### Prerequisite
- Basic Knowlege of Node.js and Express Framework.
- Basic to Intermediate knowledge in Docker and Containerization.

### Installation and Setup

#### 1. Prometheus Server
- Create a `prometheus-config.yml` file and copy the following configration. Don't forget to replace `` with actual value.
```yml
global:
scrape_interval: 4s

scrape_configs:
- job_name: prometheus
static_configs:
- targets: [""]
```
- Start the Prometheus Server using docker compose
```yml
version: "3"

services:
prom-server:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
```
Great, The prometheus server is now up and running at PORT 9090

#### 2. Setup Grafana
```bash
docker run -d -p 3000:3000 --name=grafana grafana/grafana-oss
```
![grafana](https://grafana.com/static/img/grafana/showcase_visualize.jpg)

### 3. Setup Loki Server
```bash
docker run -d --name=loki -p 3100:3100 grafana/loki
```