metrics

package
v0.0.0-...-388ba74 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerCollector

func NewServerCollector(s ServerData) prometheus.Collector

TODO: Add Some More Complex Matrics As Needed

func NewWorkerCollector

func NewWorkerCollector(w WorkerData) prometheus.Collector

Types

type ServerData

type ServerData interface {
	Stats() map[string]int
	Clients() int
	Workers() int
	Jobs() int
	RunningJobsByWorker() map[string]int
	RunningJobsByFunction() map[string]int
}

type WorkerData

type WorkerData interface {
	Running() (string, int)
	Agents() int
}

Jump to

Keyboard shortcuts

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