Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tauqueeralam42/server-monitoring
https://github.com/tauqueeralam42/server-monitoring
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tauqueeralam42/server-monitoring
- Owner: tauqueeralam42
- Created: 2024-10-16T17:16:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-16T17:23:04.000Z (3 months ago)
- Last Synced: 2024-10-18T12:54:39.151Z (3 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: 4sscrape_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
```