How ahmedmostafa1983/prometheus-grafana-nodejs-app works
This project deploys a metrics-enabled Node.js application on Kubernetes and monitors it with Prometheus and Grafana. The principal flow is application requests producing custom metrics, which Prometheus scrapes through the Kubernetes ServiceMonitor and Grafana visualizes; a PrometheusRule also drives Alertmanager notifications to Slack. The README documents multi-replica deployment, containerization, and traffic simulation. The supplied tree contains only the README and a YAML file, with no source excerpts, so implementation paths and undocumented connections are omitted; relationships shown are those explicitly described in the README.
Components 10
Application
- Node.js app
- Traffic simulation
Kubernetes Deployment
- Kubernetes deployment
- NodePort Service
Monitoring
- Prometheus
- Grafana
Alerting
- PrometheusRule
- Alertmanager
Other components
- Application clients
- Slack
Connections 9
- Application clients → Node.js app: sends requests
README.md - Traffic simulation → Node.js app: generates traffic
README.md - Node.js app → NodePort Service: exposes metrics
README.md - Kubernetes deployment → Node.js app: runs replicas
README.md - NodePort Service → Prometheus: ServiceMonitor scraping
README.md - Prometheus → Grafana: provides metrics
README.md - Prometheus → PrometheusRule: evaluates alerts
README.md - PrometheusRule → Alertmanager: routes alerts
README.md - Alertmanager → Slack: sends notifications
README.md