ASP.NET OTEL Metrics
19,755

Created 12/26/2022
Updated 11/30/2023
Revision 3
Categories
Web Servers
Grafana Version >=10.1.4
Datasources
Prometheus

Dashboard to show ASP.NET (.NET Core/5/6/7) metrics produced by opentelemetry-dotnet tools for Prometheus.

References:

Example of ASP.NET configuration:

builder.Services.AddOpenTelemetry()
    .WithMetrics(b => b
        .AddAspNetCoreInstrumentation()
        .AddHttpClientInstrumentation()
        .AddRuntimeInstrumentation()
        .AddProcessInstrumentation()
        .AddPrometheusExporter());

Reference .NET integration with OTEL for this dashboard might be found here: https://github.com/nazarii-piontko/sample-dotnet-otel

Get Dashboard
Download
Copy to Clipboard
Source Grafana.com

Used Metrics 15

  • process_cpu_time_seconds_total

  • process_memory_usage_bytes

  • process_threads

  • process_runtime_dotnet_gc_committed_memory_size_bytes

  • process_runtime_dotnet_gc_objects_size_bytes

  • process_runtime_dotnet_gc_allocations_size_bytes_total

  • process_runtime_dotnet_gc_heap_size_bytes

  • process_runtime_dotnet_gc_heap_fragmentation_size_bytes

  • process_runtime_dotnet_gc_collections_count_total

  • process_runtime_dotnet_exceptions_count_total

  • process_runtime_dotnet_thread_pool_threads_count

  • process_runtime_dotnet_thread_pool_queue_length

  • http_server_duration_milliseconds_bucket

  • http_server_duration_milliseconds_count

  • http_client_duration_milliseconds_bucket