statistics

package
v0.0.0-...-2f3587d Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStatisticsService

func CreateStatisticsService() *echo.Echo

func Register

func Register(collector prometheus.Collector)

Types

type ControllerCollector

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

func NewControllerCollector

func NewControllerCollector(controllers []controller.FanController) *ControllerCollector

func (*ControllerCollector) Collect

func (collector *ControllerCollector) Collect(ch chan<- prometheus.Metric)

Collect implements required collect function for all prometheus collectors

func (*ControllerCollector) Describe

func (collector *ControllerCollector) Describe(ch chan<- *prometheus.Desc)

type CurveCollector

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

func NewCurveCollector

func NewCurveCollector(curves []curves.SpeedCurve) *CurveCollector

func (*CurveCollector) Collect

func (collector *CurveCollector) Collect(ch chan<- prometheus.Metric)

Collect implements required collect function for all prometheus collectors

func (*CurveCollector) Describe

func (collector *CurveCollector) Describe(ch chan<- *prometheus.Desc)

type FanCollector

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

func NewFanCollector

func NewFanCollector(fans []fans.Fan) *FanCollector

func (*FanCollector) Collect

func (collector *FanCollector) Collect(ch chan<- prometheus.Metric)

Collect implements required collect function for all prometheus collectors

func (*FanCollector) Describe

func (collector *FanCollector) Describe(ch chan<- *prometheus.Desc)

type SensorCollector

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

func NewSensorCollector

func NewSensorCollector(sensors []sensors.Sensor) *SensorCollector

func (*SensorCollector) Collect

func (collector *SensorCollector) Collect(ch chan<- prometheus.Metric)

Collect implements required collect function for all prometheus collectors

func (*SensorCollector) Describe

func (collector *SensorCollector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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