prometheus

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartPrometheusEndpoint

func StartPrometheusEndpoint(certsDirectory string)

StartPrometheusEndpoint starts an http server providing a prometheus endpoint using the passed in directory to store the self signed certificates that will be generated before starting the http server.

Types

type ProgressMetric added in v1.59.1

type ProgressMetric interface {
	Add(value float64)
	Get() (float64, error)
	Delete()
}

type ProgressReader added in v1.10.0

type ProgressReader struct {
	util.CountingReader
	// contains filtered or unexported fields
}

ProgressReader is a counting reader that reports progress to prometheus.

func NewProgressReader added in v1.10.0

func NewProgressReader(r io.ReadCloser, metric ProgressMetric, total uint64) *ProgressReader

NewProgressReader creates a new instance of a prometheus updating progress reader.

func (*ProgressReader) SetNextReader added in v1.43.0

func (r *ProgressReader) SetNextReader(reader io.ReadCloser, final bool)

SetNextReader replaces the current counting reader with a new one, for tracking progress over multiple readers.

func (*ProgressReader) StartTimedUpdate added in v1.10.0

func (r *ProgressReader) StartTimedUpdate()

StartTimedUpdate starts the update timer to automatically update every second.

Jump to

Keyboard shortcuts

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