Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SuccessTrue indicates that the operation was successful. SuccessTrue string = "true" // SuccessTrue indicates that the operation was not successful. SuccessFalse string = "false" // SuccessKey defines the key of the metric label indicating success/failure of an operation. SuccessKey string = "success" )
View Source
const ( // ProtocolDBLess indicates that configuration was sent to Kong using the DB-less protocol (POST /config). ProtocolDBLess string = "db-less" // ProtocolDeck indicates that configuration was sent to Kong using the DB mode protocol (deck sync). ProtocolDeck string = "deck" // ProtocolKey defines the key of the metric label indicating which protocol KIC used to configure Kong. ProtocolKey string = "protocol" )
View Source
const ( MetricNameConfigPushCount = "ingress_controller_configuration_push_count" MetricNameTranslationCount = "ingress_controller_translation_count" MetricNameConfigPushDuration = "ingress_controller_configuration_push_duration_milliseconds" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtrlFuncMetrics ¶
type CtrlFuncMetrics struct { // ConfigPushCount is a Prometheus metric with semantics defined by its help string in NewCtrlFuncMetrics(). ConfigPushCount *prometheus.CounterVec // TranslationCount is a Prometheus metric with semantics defined by its help string in NewCtrlFuncMetrics(). TranslationCount *prometheus.CounterVec // ConfigPushDuration is a Prometheus metric with semantics defined by its help string in NewCtrlFuncMetrics(). ConfigPushDuration *prometheus.HistogramVec }
func NewCtrlFuncMetrics ¶
func NewCtrlFuncMetrics() *CtrlFuncMetrics
Click to show internal directories.
Click to hide internal directories.