publish

package
v0.0.0-...-b30125a Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package publish provides types and functions that publish Prometheus Metrics describing the polling results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publisher

func Publisher(in <-chan *util.Result, env string)

Publisher reads results from the in channel, looks up or registers metrics as necessary, and sets their values. Because this func maintains the map of target URLs to the associated metrics, we expect only one invocation of this func.

Types

type Metrics

type Metrics struct {
	Up        prometheus.Gauge
	Time      prometheus.Gauge
	CertValid prometheus.Gauge
}

Jump to

Keyboard shortcuts

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