Documentation ¶
Index ¶
- Variables
- 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 SetUpLabelNames(addKubeStandardLabels bool)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RefineConditionMetricLabels ¶
func RefineConditionMetricLabels(labels map[string]string) prometheus.Labels
func RefineLabels ¶
func RefineLabels(promLabels prometheus.Labels, newLabels map[string]string) prometheus.Labels
RefineLabels refines 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 SetUpLabelNames ¶
func SetUpLabelNames(addKubeStandardLabels bool)
SetUpLabelNames initializes both non-conditional and conditional metric labels and label names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.