prometheus

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gauge

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

Gauge struct for the prometheus

func NewBackup

func NewBackup() *Gauge

NewBackup create a Gauge object for Backup

func NewReplication

func NewReplication() *Gauge

NewReplication create a Gauge object for Replication

func (*Gauge) AllFiles

func (g *Gauge) AllFiles(filesCount int)

AllFiles set the start time of the process

func (*Gauge) Beginn

func (g *Gauge) Beginn()

Beginn set the start time of the process

func (*Gauge) CurrentFile

func (g *Gauge) CurrentFile(fileId int)

CurrentFile set the start time of the process

func (*Gauge) Finish

func (g *Gauge) Finish()

Finish set the finish time of the process

func (*Gauge) ServerStart

func (g *Gauge) ServerStart()

ServerStart starts the prometheus metrics server

func (*Gauge) SetError

func (g *Gauge) SetError()

SetError set the current time for lastError and incement the countError

func (*Gauge) SetSuccess

func (g *Gauge) SetSuccess(ts *time.Time)

SetSuccess set the current time for lastSuccess and incement the countSuccess

Jump to

Keyboard shortcuts

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