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{"order", "teamName", "component", "version", "state", "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 *s2hv1beta1.ActivePromotion)
func SetHealthStatusMetric ¶
func SetQueueMetric ¶
func SetQueueMetric(queue *s2hv1beta1.Queue)
func SetTeamNameMetric ¶
func SetTeamNameMetric(teamList *s2hv1beta1.TeamList)
Types ¶
type ActivePromotionMetricState ¶ added in v1.1.7
type ActivePromotionMetricState string
Click to show internal directories.
Click to hide internal directories.