OpenTelemetry dotnet webapi 2,1022,102
OpenTelemetry dotnet webapi
OpenTelemetry dotnet webapi dashboard using RED method
Blog post with live demo
A complete live demo and blog post with docker compose is available at github.
Stats
RED
Metrics to traces
HTTP Server
Process
Runtime
HTTP Client
Logs
Setup dotnet dependencies
dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol
dotnet add package OpenTelemetry.Instrumentation.AspNetCore
dotnet add package OpenTelemetry.Instrumentation.Http
dotnet add package OpenTelemetry.Instrumentation.Runtime
dotnet add package System.Diagnostics.DiagnosticSource
dotnet add package OpenTelemetry.Instrumentation.Process
Used Metrics 2929
topk
http_server_request_duration_seconds_count
service_version
deployment_environment
host_name
http_route
http_response_status_code
http_server_request_duration_seconds_bucket
top
http_server_active_requests
aspnetcore_routing_match_attempts_total
aspnetcore_routing_match_attempts
kestrel_active_connections
kestrel_queued_connections
kestrel_connection_duration_seconds_bucket
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
process_runtime_dotnet_gc_allocations_size
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_client_open_connections
http_client_request_duration_seconds_bucket