Skip to content

seb-lean/grafana-dashboard-as-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published