exporter

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	multiping.PingClient
	AddPeer(ip, ifname, pubkey string, connID, grID int)
	Describe(ch chan<- *prometheus.Desc)
	Collect(ch chan<- prometheus.Metric)
}

type DummyCollector

type DummyCollector struct {
}

func (*DummyCollector) Collect

func (dc *DummyCollector) Collect(ch chan<- prometheus.Metric)

func (*DummyCollector) Describe

func (dc *DummyCollector) Describe(ch chan<- *prometheus.Desc)

type PeersMetrics

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

func New

func New(port uint16, collector prometheus.Collector) (*PeersMetrics, error)

func (*PeersMetrics) Name

func (obj *PeersMetrics) Name() string

func (*PeersMetrics) Run

func (obj *PeersMetrics) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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