metrics

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides Prometheus metrics collection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() echo.HandlerFunc

Handler returns the Prometheus metrics handler.

Types

type Metrics

type Metrics struct {
	RequestsTotal   *prometheus.CounterVec
	RequestDuration *prometheus.HistogramVec
	RequestSize     *prometheus.SummaryVec
	ResponseSize    *prometheus.SummaryVec
}

Metrics holds application metrics.

func New

func New(namespace string) *Metrics

New creates and registers default metrics.

Jump to

Keyboard shortcuts

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