Skip to content

Barros42/Prometheus-DotNet-Grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Observability in .NET with Prometheus and Grafana

This repository was made to a presentation in .NET CONF 2023 that happened in Campinas city in Brazil!

I used this repository to demonstrate how to instrument and observe a simple .NET API.

☕ The stack

  • Docker
  • Docker Compose
  • .NET (Inside Docker)
  • K6 (Inside Docker)
  • Prometheus (Inside Docker)
  • AlertManager (Inside Docker)
  • Grafana (Inside Docker)

💻 Prerequisites

Before you start, check if you have all the prerequisites:

  • You have Docker installed.
  • You have Docker Compose installed.

☕ Run the project

Go to the root folder of this project and simply run the command below:

docker-compose up -d

🛎️ Alerts!

To receive alerts by e-mail, you should change the information in this file here

🚀 Run a stress test with K6

Go to the root folder of this project and simply run the command below:

docker run --net=host --rm -i grafana/k6 run - <k6/test.js

😄 Improve this code!

Want to improve this repository? Click HERE and send me an e-mail.

About

Observability in .NET with Prometheus and Grafana

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published