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
- Host: GitHub
- URL: https://github.com/jayvirrathi/nodejs-prometheus-grafana
- Owner: Jayvirrathi
- Created: 2020-11-14T13:58:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-14T14:06:16.000Z (over 5 years ago)
- Last Synced: 2025-02-27T16:52:58.854Z (over 1 year ago)
- Topics: docker, docker-compose, grafana, nodejs, prometheus
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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])
```