metrics

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "veidemann"
)

Variables

View Source
var (
	JobStatus = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: "job",
		Name:      "status_total",
		Help:      "Status for running jobs",
	}, []string{"job_name", "status"})

	JobSize = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: Namespace,
		Subsystem: "job",
		Name:      "size_total",
		Help:      "Sizes for running jobs",
	}, []string{"job_name", "type"})
)

Functions

This section is empty.

Types

type Exporter

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

func New

func New(rethinkdb *rethinkdb.Query, frontier *frontier.Client) *Exporter

New creates a new Exporter

func (*Exporter) Run

func (e *Exporter) Run(interval time.Duration)

Jump to

Keyboard shortcuts

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