metrics

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(ip string, success bool)

Auth increments the auth successes or failures counter

func Cache

func Cache(hit bool)

Cache increments the cache hits or misses counter

func Handler

func Handler() echo.HandlerFunc

Handler returns an echo handler that writes prometheus metrics to the response

func Request

func Request(method, path string)

Request increments the total requests counter and the specific method counter plus, it tries to parse image name from the URL path, and increments the specific image counter

Types

This section is empty.

Jump to

Keyboard shortcuts

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