Skip to content

AlexGreatDev/GrafanaLab-DotNet

Repository files navigation

ASP.NET Core Monitoring with Prometheus & Grafana

This is a demo project showing how to monitor a .NET Web API using Prometheus and visualize metrics using Grafana.

🔧 Tech Stack

  • ASP.NET Core
  • Prometheus-net
  • Grafana
  • Docker & Docker Compose

📦 How to Run

docker-compose up --build

Then open:

📊 Sample Dashboard

You can create a custom dashboard in Grafana using metrics like:

http_requests_received_total

Add panels using this metric to monitor incoming HTTP requests.

📁 Structure

  • /Dockerfile: Builds the .NET app
  • /prometheus.yml: Prometheus config
  • /docker-compose.yml: Orchestrates services
  • /Program.cs: Minimal API with Prometheus metrics

📜 License

MIT

About

ASP.NET Core + Prometheus + Grafana = Real-time monitoring made simple.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published