exporter

package
v1.10.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActivePromotionMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
	Name: "samsahai_active_promotion",
	Help: "Get values from samsahai active promotion",
}, []string{"teamName", "state"})
View Source
var HealthStatusMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
	Name: "samsahai_health",
	Help: "show s2h's health status",
}, []string{"version", "gitCommit"})
View Source
var QueueMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
	Name: "samsahai_queue",
	Help: "Show components in queue",
}, []string{"teamName", "queueName", "component", "version", "state", "order", "no_of_processed"})
View Source
var TeamMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
	Name: "samsahai_team",
	Help: "List team name",
}, []string{"teamName"})

Functions

func RegisterMetrics

func RegisterMetrics()

func SetActivePromotionMetric

func SetActivePromotionMetric(atpComp *s2hv1.ActivePromotion)

func SetHealthStatusMetric

func SetHealthStatusMetric(version, gitCommit string, ts float64)

func SetQueueMetric

func SetQueueMetric(queue *s2hv1.Queue)

func SetTeamNameMetric

func SetTeamNameMetric(teamList *s2hv1.TeamList)

Types

type ActivePromotionMetricState added in v1.1.7

type ActivePromotionMetricState string

type QueueMetricState added in v1.3.2

type QueueMetricState string

Jump to

Keyboard shortcuts

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