Documentation ¶
Index ¶
- Constants
- Variables
- func GetCounterVec(key string) *prometheus.CounterVec
- func GetGaugeVec(key string) *prometheus.GaugeVec
- func RefineConditionMetricLabels(labels map[string]string) prometheus.Labels
- func RefineLabels(promLabels prometheus.Labels, newLabels map[string]string) prometheus.Labels
- func RefineNonConditionMetricLabels(labels map[string]string) prometheus.Labels
- func SetUpMetrics(addKubeStandardLabels bool)
- func UpdateExternalSecretCondition(es *esv1beta1.ExternalSecret, ...)
Constants ¶
View Source
const ( ExternalSecretSubsystem = "externalsecret" SyncCallsKey = "sync_calls_total" SyncCallsErrorKey = "sync_calls_error" ExternalSecretStatusConditionKey = "status_condition" ExternalSecretReconcileDurationKey = "reconcile_duration" )
Variables ¶
Functions ¶
func GetCounterVec ¶
func GetCounterVec(key string) *prometheus.CounterVec
func GetGaugeVec ¶
func GetGaugeVec(key string) *prometheus.GaugeVec
func RefineConditionMetricLabels ¶
func RefineConditionMetricLabels(labels map[string]string) prometheus.Labels
func RefineLabels ¶
func RefineLabels(promLabels prometheus.Labels, newLabels map[string]string) prometheus.Labels
Refine the given Prometheus Labels with values from a map `newLabels` Only overwrite a value if the corresponding key is present in the Prometheus' Labels already to avoid adding label names which are not defined in a metric's description. Note that non-alphanumeric characters from keys of `newLabels` are replaced by an underscore because Prometheus does not accept non-alphanumeric, non-underscore characters in label names.
func RefineNonConditionMetricLabels ¶
func RefineNonConditionMetricLabels(labels map[string]string) prometheus.Labels
func SetUpMetrics ¶
func SetUpMetrics(addKubeStandardLabels bool)
Called at the root to set-up the metric logic using the config flags provided.
func UpdateExternalSecretCondition ¶
func UpdateExternalSecretCondition(es *esv1beta1.ExternalSecret, condition *esv1beta1.ExternalSecretStatusCondition, value float64)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.