prometheus

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

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 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, total uint64, progress *prometheus.CounterVec, ownerUID string) *ProgressReader

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

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