promutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorFunc

type CollectorFunc func(ch chan<- prometheus.Metric)

CollectorFunc is a convenient way to implement a Prometheus Collector without interface boilerplate.

This implementation relies on prometheus.DescribeByCollect; familiarize yourself with that documentation before using.

func (CollectorFunc) Collect

func (c CollectorFunc) Collect(ch chan<- prometheus.Metric)

func (CollectorFunc) Describe

func (c CollectorFunc) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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