Skip to content

0.3.0

Compare
Choose a tag to compare
@andrearaponi andrearaponi released this 16 Oct 16:25
· 26 commits to main since this release
bee2c7e

๐Ÿ‘‰ Dito 0.3.0 - Prometheus Metrics Support

What's New:

  • Added Prometheus metrics support: Dito now exposes various metrics for monitoring the proxy's performance and behavior, including custom metrics for HTTP requests, duration, active connections, and data transfer.
  • Standard Go and Prometheus metrics: Enabled automatic collection of Go runtime metrics (memory, garbage collection, goroutines) and Prometheus HTTP handler metrics.

Enhancements:

  • Configurable metrics support: Metrics can be enabled or disabled via the config.yaml file. The default metrics path is /metrics.
  • Detailed monitoring: Added custom metrics:
    • http_requests_total: Tracks the total number of HTTP requests processed.
    • http_request_duration_seconds: Measures the duration of HTTP requests.
    • active_connections: Indicates the number of active connections.
    • data_transferred_bytes_total: Monitors the amount of data transferred, partitioned by direction (inbound or outbound).

How to Use:

  1. Enable metrics in the configuration:
    metrics:
       enabled: true
       path: "/metrics"
    
    

Please test this feature in your environments and report any issues.
Feedback and contributions are welcome.