Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LabelStatus marks the status of a resource or completed task LabelStatus = "status" // LabelOutcome indicates whether the outcome of the operation was successful or not LabelOutcome = "outcome" // LabelOpcode indicates the kind of CES metric, could be CEP insert or remove LabelOpcode = "opcode" // LabelValueOutcomeSuccess is used as a successful outcome of an operation LabelValueOutcomeSuccess = "success" // LabelValueOutcomeFail is used as an unsuccessful outcome of an operation LabelValueOutcomeFail = "fail" // LabelValueOutcomeAlive is used as outcome of alive identity entries LabelValueOutcomeAlive = "alive" // LabelValueOutcomeDeleted is used as outcome of deleted identity entries LabelValueOutcomeDeleted = "deleted" // LabelValueCEPInsert is used to indicate the number of CEPs inserted in a CES LabelValueCEPInsert = "cepinserted" // LabelValueCEPRemove is used to indicate the number of CEPs removed from a CES LabelValueCEPRemove = "cepremoved" )
View Source
const Namespace = "cilium_operator"
Namespace is the namespace key to use for cilium operator metrics.
Variables ¶
View Source
var ( // IdentityGCSize records the identity GC results IdentityGCSize *prometheus.GaugeVec // IdentityGCRuns records how many times identity GC has run IdentityGCRuns *prometheus.GaugeVec // CiliumEndpointSliceDensity indicates the number of CEPs batched in a CES and it used to // collect the number of CEPs in CES at various buckets. For example, // number of CESs in the CEP range <0, 10> // number of CESs in the CEP range <11, 20> // number of CESs in the CEP range <21, 30> and so on CiliumEndpointSliceDensity prometheus.Histogram // CiliumEndpointsChangeCount indicates the total number of CEPs changed for every CES request sent to k8s-apiserver. // This metric is used to collect number of CEP changes happening at various buckets. CiliumEndpointsChangeCount *prometheus.HistogramVec // CiliumEndpointSliceSyncErrors used to track the total number of errors occurred during syncing CES with k8s-apiserver. CiliumEndpointSliceSyncErrors prometheus.Counter // CiliumEndpointSliceQueueDelay measures the time spent by CES's in the workqueue. This measures time difference between // CES insert in the workqueue and removal from workqueue. CiliumEndpointSliceQueueDelay prometheus.Histogram )
View Source
var ( // Registry is the global prometheus registry for cilium-operator metrics. Registry *prometheus.Registry )
Functions ¶
func DumpMetrics ¶
DumpMetrics gets the current Cilium operator metrics and dumps all into a Metrics structure. If metrics cannot be retrieved, returns an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.