metrics/

directory
v1.0.0-rc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2025 License: MIT

README

Metrics Example

This example demonstrates how to use mahakam's metrics extension.

Usage

To run the example, you can use docker compose:

docker compose up

You can then access the server at http://localhost:8080 and the grafana dashboard at http://localhost:3000.

Metrics

The metrics extension provides the following metrics:

  • http_requests_total: The total number of processed events.
  • http_request_duration_seconds: The duration of the request.
  • http_request_size_bytes: The size of HTTP requests in bytes.
  • http_active_connections: Number of active HTTP connections.
  • http_concurrent_requests: Number of concurrent HTTP requests being processed.
  • http_errors_total: Total number of HTTP errors.
  • http_server_uptime_seconds: Total uptime of the HTTP server in seconds.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL