metrics

package
v0.0.0-...-53c35de Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package metrics implements a prometheus.Collector that exposes metrics about the checks that were run

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics implements a prometheus.Collector that exposes metrics about the checks that were run

func New

func New() *Metrics

New returns a new Metrics instance

func (*Metrics) Update

func (m *Metrics) Update(r checker.CheckResult)

Update updates the metrics with the latest check results

Jump to

Keyboard shortcuts

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