Expand description
hyperlane-plugin-metrics
Lock-free atomic Prometheus/OpenMetrics observability plugin for Hyperlane
with built-in HTTP request counters, in-flight gauges, fixed-bucket latency
histograms, custom metric handles, and a scrapeable /metrics endpoint.
Structs§
- Counter
- Lock-free monotonically increasing 64-bit counter metric.
- Gauge
- Lock-free signed 64-bit gauge metric that may increment or decrement.
- Histogram
- Lock-free fixed-bucket latency/size histogram metric.
- Metrics
Config - Configuration for
MetricsPluginandMetricsRequestHook. - Metrics
Plugin - Process-wide
MetricsPluginsingleton storingMetricsConfigandMetricsRegistry. - Metrics
Registry - Lock-free HTTP and custom application metrics registry with Prometheus 0.0.4 exposition.
- Metrics
Request Hook - Opt-in request middleware incrementing in-flight gauges and serving
/metricsscrapes. - Metrics
Response Hook - Opt-in response middleware recording status class, response bytes, and request duration.
Constants§
- DEFAULT_
LATENCY_ BUCKETS - Default latency histogram bucket upper bounds in seconds.
- DEFAULT_
METRICS_ ENDPOINT - Default Prometheus scrape endpoint path.
- DEFAULT_
METRICS_ NAMESPACE - Default metric prefix namespace.
- PROMETHEUS_
CONTENT_ TYPE - Prometheus text exposition format 0.0.4
Content-Typeheader value.