monitor

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: Apache-2.0 Imports: 9 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 struct {
	// contains filtered or unexported fields
}

Collector implements prometheus.Collector

func NewCollector

func NewCollector(mw *kube.MultiWatcher) *Collector

NewCollector creates a prometheus.Collector that montors all Routes from mw

func (*Collector) Collect

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

func (*Collector) Describe

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

type Config

type Config struct {
	Listen string `yaml:"listen"`
}

Config holds the Monitor configuration

type Monitor

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

Monitor periodically checks routes

func New

func New(c Config, mw *kube.MultiWatcher) (m *Monitor, err error)

New creates a new Monitor from Config

func (*Monitor) Run

func (m *Monitor) Run(ctx context.Context, errs chan<- error)

Run starts the metric server

Jump to

Keyboard shortcuts

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