Giter Site home page Giter Site logo

shalini950 / otel-grafana-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from connorlindsey/otel-grafana-demo

0.0 0.0 0.0 460 KB

Demo application showing how to instrument a Node application with OpenTelemetry, Prometheus, Jaeger, Loki, and Grafana. Built with Next.js, Fastify, and Postgres.

Shell 0.66% JavaScript 1.72% TypeScript 89.14% CSS 7.60% Dockerfile 0.88%

otel-grafana-demo's Introduction

OpenTelemetry - Grafana Demo

Author: Connor Lindsey

This demo application demonstrates how to monitor a JavaScript application using open source observability software. The following projects are used:

  • OpenTelemetry - Instrument the application and send observability data to each backend.
  • Jaeger - Distributed tracing backend.
  • Prometheus - Metrics and alerting backend.
  • Loki - Logs aggregation system.
  • Grafana - Visualize all of our observability data.

Project Structure

App architecture

  • api/ - Fastify API. Instrumented with OpenTelemetry
  • app/ - Simple Next.js app.
  • db/ - Stores copy of Postgres data for persistence.
  • config/ - Standard configuration for Prometheus, Promtail, Loki, etc.
  • data/ - Stores server logs

Running the app

  1. Run with npm run dev. Requires Docker and docker-compose.
  2. Optionally, run npm install in /api and /app.
  3. Open the app at http://localhost
  4. View traces, logs, and metrics in Grafana at http://localhost:3000

Additional Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.