Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 2.13 KB

README.md

File metadata and controls

49 lines (30 loc) · 2.13 KB

Node.js Application Monitoring with Prometheus and Grafana

The repository contains a sample Node.js app that integrates the Prometheus client for node.js and exposes metrics on http://localhost:8080/metrics. The metrics are periodically scraped by Prometheus and visualized through a Grafana monitoring dashboard.

Prerequisites

Make sure that you have Docker and Docker Compose installed:

Getting started

Clone the repository:

git clone git@github.com:seb-lean/grafana-dashboard-as-code.git

Navigate into the project directory:

cd grafana-dashboard-as-code

Start the Docker containers:

docker compose up --build

You should now be able to see the generated Grafana dashboards at http://localhost:3000/d/empty_dashboard/my-cool-dashboard

Test containers

Grafonnet

This demo uses Jsonnet and Grafonnet to programmatically build the JSON used to describe dashboard and panels.

As per the Grafonnet docs, we also use Grizzly to watch for changes and deploy them. Once Docker is running you can even make changes to main.jsonnet and they'll automatically be reflected on Grafana. Just refresh!

Demo video

https://www.youtube.com/watch?v=xEi-UKYCIYI