@page "/" @inject ILogger Logger Home

Blazor Server App - Grafana Observability Demo

Welcome! This application is configured with:

Available Endpoints

Getting Started with Grafana

To visualize this data in Grafana:

  1. Add Prometheus as a data source pointing to this app's /metrics endpoint
  2. Add Azure Monitor as a data source for Application Insights
  3. Create dashboards to visualize your metrics and logs
@code { private void LogTestMessage() { Logger.LogInformation("Test log message generated from Home page at {Timestamp}", DateTime.UtcNow); Logger.LogWarning("This is a warning message for testing"); } }