metrics

package
v0.0.0-...-d4ca7bd Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

All metrics definitions are made available here

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncURLResponseTime

func IncURLResponseTime(url string, ms uint64)

IncURLResponseTime will add the response time for pinging an URL

func IncURLUp

func IncURLUp(url string, val bool)

IncURLUp will update the value as up(1) or down(0) for an URL

func Register

func Register()

Register will add the above custom metrics to the Prom client

Types

This section is empty.

Jump to

Keyboard shortcuts

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