Documentation ¶
Index ¶
- Variables
- func ExposeMetrics(host string, metricPort int, stopCh <-chan struct{}, wg *sync.WaitGroup, ...) error
- func SetMetricBootDurationSummary(creationTimestamp, now time.Time)
- func SetMetricKlusterInfo(namespace, name, version, projectID string, ...)
- func SetMetricKlusterStatusPhase(klusterName string, klusterPhase models.KlusterPhase)
- func SetMetricKlusterTerminated(klusterName string)
Constants ¶
This section is empty.
Variables ¶
View Source
var LaunchFailedOperationsTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "kubernikus", Subsystem: "launch", Name: "failed_operation_total", Help: "Number of failed operations."}, []string{"method"})
View Source
var LaunchOperationsLatency = prometheus.NewSummaryVec( prometheus.SummaryOpts{ Namespace: "kubernikus", Subsystem: "launch", Name: "operation_latency_seconds", Help: "Total duration of reconciliation in microseconds.", }, []string{"method"})
View Source
var LaunchOperationsTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "kubernikus", Subsystem: "launch", Name: "operation_total", Help: "Number of operations."}, []string{"method"})
View Source
var LaunchSuccessfulOperationsTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "kubernikus", Subsystem: "launch", Name: "successful_operation_total", Help: "Number of successful operations."}, []string{"method"})
Functions ¶
func ExposeMetrics ¶
func SetMetricKlusterInfo ¶
func SetMetricKlusterStatusPhase ¶
func SetMetricKlusterStatusPhase(klusterName string, klusterPhase models.KlusterPhase)
kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="<phase>"} < 1|0 > kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="creating"} 1 kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="running"} 0 kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="pending"} 0 kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="terminating"} 0
func SetMetricKlusterTerminated ¶
func SetMetricKlusterTerminated(klusterName string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.