monitor_bundler

package
v0.2.131 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 7 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 {

	// Run
	UpForSeconds *prometheus.Desc

	PendingBundleItems          *prometheus.Desc
	BundlesFromNotifications    *prometheus.Desc
	AdditionalFetches           *prometheus.Desc
	BundlesFromSelects          *prometheus.Desc
	RetriedBundlesFromSelects   *prometheus.Desc
	AllBundlesFromDb            *prometheus.Desc
	BundlrSuccess               *prometheus.Desc
	TurboSuccess                *prometheus.Desc
	AllSuccess                  *prometheus.Desc
	ConfirmationsSavedToDb      *prometheus.Desc
	BundrlError                 *prometheus.Desc
	BundrlMarshalError          *prometheus.Desc
	TurboError                  *prometheus.Desc
	TurboMarshalError           *prometheus.Desc
	ConfirmationsSavedToDbError *prometheus.Desc
	AdditionalFetchError        *prometheus.Desc
	PollerFetchError            *prometheus.Desc
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector() *Collector

func (*Collector) Collect

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

Collect implements required collect function for all promehteus collectors

func (*Collector) Describe

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

func (*Collector) WithMonitor

func (self *Collector) WithMonitor(m *Monitor) *Collector

type Monitor

type Monitor struct {
	*task.Task

	Report report.Report

	// Params
	IsFatalError atomic.Bool
	// contains filtered or unexported fields
}

Stores and computes monitor counters

func NewMonitor

func NewMonitor() (self *Monitor)

func (*Monitor) Clear

func (self *Monitor) Clear()

func (*Monitor) GetPrometheusCollector

func (self *Monitor) GetPrometheusCollector() (collector prometheus.Collector)

func (*Monitor) GetReport

func (self *Monitor) GetReport() *report.Report

func (*Monitor) IsOK

func (self *Monitor) IsOK() bool

func (*Monitor) OnGetHealth

func (self *Monitor) OnGetHealth(c *gin.Context)

func (*Monitor) OnGetState

func (self *Monitor) OnGetState(c *gin.Context)

func (*Monitor) SetPermanentError added in v0.1.283

func (self *Monitor) SetPermanentError(err error)

Jump to

Keyboard shortcuts

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