prometheus

package
v0.0.0-...-9aa21c9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenTo

func ListenTo(endpoint string, reg metrics.Registry)

ListenTo serves prometheus connections.

func SetNamespace

func SetNamespace(s string)

SetNamespace for metrics.

Types

type Collector

type Collector struct {
	*Metric
}

Collector collects ethereum metrics data.

func NewCollector

func NewCollector(opts prometheus.Opts, metric interface{}, fields ...string) *Collector

NewCollector constructor.

func (*Collector) Collect

func (c *Collector) Collect(out chan<- prometheus.Metric)

Collect implements prometheus.Collector interface.

func (*Collector) Describe

func (c *Collector) Describe(out chan<- *prometheus.Desc)

Describe implements prometheus.Collector interface.

type Metric

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

func (*Metric) Desc

func (m *Metric) Desc() *prometheus.Desc

func (*Metric) Write

func (m *Metric) Write(out *dto.Metric) error

Jump to

Keyboard shortcuts

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