{"repo":"ttys3/axum-otel-metrics","free":true,"listed":false,"github":"https://github.com/ttys3/axum-otel-metrics","clone":"git clone https://github.com/ttys3/axum-otel-metrics.git","description":"axum OpenTelemetry Metrics middleware with prometheus exporter","language":"Rust","stars":39,"topics":["axum","opentelemetry","metric","metrics","middleware","axum-middleware","prometheus"],"license":null,"category":"analytics","readme_excerpt":"axum-otel-metrics axum OpenTelemetry metrics middleware with OTLP exporter follows Semantic Conventions for HTTP Metrics axum is an ergonomic and modular web framework built with Tokio, Tower, and Hyper Note: Prometheus exporter is removed now Development of the Prometheus exporter has been discontinued. See the related issue. This crate depends on the unmaintained protobuf crate and has unresolved security vulnerabilities. Version 0.29 will be the final release. For Prometheus integration, we strongly recommend using the [OTLP] exporter instead. Prometheus natively supports OTLP, providing a more stable and actively maintained solution. for more details please check https://github.com/open-telemetry/opentelemetry-rust/blob/opentelemetry-0.30.0/opentelemetry-prometheus/README.md and https://github.com/ttys3/axum-otel-metrics/issues/176 Best Practices For a detailed guide on configuration, avoiding memory leaks (cardinality limits), optimizing performance, and ensuring graceful shutdown, please refer to our OpenTelemetry Metrics Best Practices guide. Usage Uses the OTLP Exporter to send metrics to OpenTelemetry collector. You can configure it via environment variables: - OTEL EXPORTER OTLP ENDPOINT or OTEL EXPORTER OTLP METRICS ENDPOINT OTEL EXPORTER OTLP ENDPOINT default value: - gRPC: http://localhost:4317 - HTTP: http://localhost:4318 OTEL EXPORTER OTLP METRICS ENDPOINT default value: - gRPC: http://localhost:4317 - HTTP: http://localhost:4318/v1/metrics For more details, s","default_branch":null,"files":null,"tree":[],"storefront":"/r/ttys3","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ttys3/axum-otel-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}