Giter Club home page Giter Club logo

dotnetmicroservicesobservabilitysample's Introduction

DotNetMicroservicesObservabilitySample

Sample application looking into observability of .NET microservices, using popular tools and technologies like OpenTelemetry, Prometheus, Grafana and (potentially) others

This repository is a companion to the blog post Observing .NET microservices with OpenTelemetry - logs, traces and metrics

Running the sample

The sample was prepared to be easy to run after cloning the repository. There are two approaches to get things going:

  • Using Docker Compose - in the repo root, run docker compose up -d
  • Using Kubernetes - in the repo root, run docker compose build, so the containers are created, then run kubectl apply -f ./k8s/, so things start up

After things are running, you can access Grafana, where you can see the logs, traces and metrics.

To generate some load, to see things happening in Grafana, you can use the K6 script present in the repo. To run it, you need to have K6 installed, then, in the repo root, you could do k6 run --vus 10 --duration 120s ./k6/script.js, which would execute 10 virtual users, making HTTP requests to the API for 2 minutes.

To query the telemetry data, Grafana ca be found at http://localhost:3000. The default username and password are both admin.

dotnetmicroservicesobservabilitysample's People

Contributors

joaofbantunes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

randianb

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.