clockalignedmetrics

package
v0.0.0-...-f374617 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() http.Handler

Init initialize clock aligned metrics handler

func IsClockAlignedMetricsEnabled

func IsClockAlignedMetricsEnabled() bool

IsClockAlignedMetricsEnabled check if clock aligned metrics is enabled

func RunAppMetricCollection

func RunAppMetricCollection()

RunAppMetricCollection start collecting metrics from app

Types

type Bucket

type Bucket struct {
	BucketID      int
	Status        string
	CaFetchedData []*dto.MetricFamily
	TimeStamp     time.Time
}

type MetricsCollector

type MetricsCollector struct {
	Buckets map[int]*Bucket
}

MetricsCollector implements the prometheus.Collector interface.

func (*MetricsCollector) Collect

func (b *MetricsCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (*MetricsCollector) Describe

func (b *MetricsCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

Jump to

Keyboard shortcuts

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