Documentation ¶
Index ¶
- Variables
- func RegisterMetrics()
- func SetActivePromotionMetric(atpComp *s2hv1beta1.ActivePromotion)
- func SetHealthStatusMetric(version, gitCommit string, ts float64)
- func SetQueueMetric(queue *s2hv1beta1.Queue)
- func SetTeamNameMetric(teamList *s2hv1beta1.TeamList)
- type ActivePromotionMetricState
- type QueueMetricState
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 *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
type QueueMetricState ¶ added in v1.3.2
type QueueMetricState string
Click to show internal directories.
Click to hide internal directories.