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

https://github.com/jayvirrathi/nodejs-prometheus-grafana

Nodejs Prometheus Grafana
https://github.com/jayvirrathi/nodejs-prometheus-grafana

docker docker-compose grafana nodejs prometheus

Last synced: 3 months ago
JSON representation

Nodejs Prometheus Grafana

Awesome Lists containing this project

README

          

# Docker Kubernetes Prometheus Grafana NodeJS Application Monitoring
```
docker-compose up -d --build nodejs-application
```

## Start Prometheus, Grafana & Dashboards

```
docker-compose up -d prometheus
docker-compose up -d grafana
docker-compose up -d grafana-dashboards
```

## Generate some requests by opening the application in the browser

```
http://localhost:83 #NodeJS
```

## Check Dashboards
```
http://localhost:3000

```
## Prometheus Queries

Requests per Second over 2minutes
```
irate(go_request_operations_total[2m])
```
Request duration
```
rate(go_request_duration_seconds_sum[2m]) / rate(go_request_duration_seconds_total[2m])
```