Documentation ¶
Index ¶
- Constants
- Variables
- func AddClusterToMetricsCleanupQueue(guestClusterName string, harvesterClusterName string)
- func CleanupMetrics()
- func DecrementFiprangesReserved(fipRangeName string, fipRange string, harvesterClusterName string, ...)
- func IncrementFiprangesReserved(fipRangeName string, fipRange string, harvesterClusterName string, ...)
- func IncrementGuestClusterEventsMetric(guestClusterName string, harvesterClusterName string, event string, ...)
- func InitMetrics(metricsPort int)
- func NewMetrics(reg prometheus.Registerer) *appMetricsStruct
- func RemoveFiprangeMetrics(fipRangeName string, fipRange string, harvesterClusterName string, ...)
- func RemoveGuestClusterEventsFromMetrics(guestClusterName string, harvesterClusterName string)
- func SetFiprangesCapacity(fipRangeName string, fipRange string, harvesterClusterName string, ...)
- func SetGuestClusterStatus(guestClusterName string, harvesterClusterName string, clusterStatus float64)
Constants ¶
View Source
const ( GuestClusterConnectionError = 1 KubevipConfigMapManagementError = 2 KubevipInstallError = 3 KubevipCloudproviderInstallError = 4 EventApiConnection = "api_connection" EventConfigmapManagement = "configmap_management" EventKubevipInstall = "kubevip_install" EventKubevipCloudproviderInstall = "kubevipcloudprovider_install" StatusSuccess = "success" StatusError = "error" StatusUp = 1 StatusDown = 0 )
Variables ¶
View Source
var ( AppMetrics *appMetricsStruct LabelFipRangeName = "fiprangename" LabelFipRange = "fiprange" LabelFipName = "fipname" LabelFip = "fip" LabelGuestClusterName = "guestclustername" LabelHarvesterClusterName = "harvesterclustername" LabelHarvesterNetworkName = "harvesternetworkname" LabelEvent = "event" LabelStatus = "status" InOperationMode bool = false )
Functions ¶
func CleanupMetrics ¶
func CleanupMetrics()
func InitMetrics ¶
func InitMetrics(metricsPort int)
func NewMetrics ¶
func NewMetrics(reg prometheus.Registerer) *appMetricsStruct
func RemoveFiprangeMetrics ¶
func SetFiprangesCapacity ¶
func SetGuestClusterStatus ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.