Discover Packages
k8s.io/kube-state-metrics/v2
pkg
allow
package
Version:
v2.7.0
Opens a new window with list of versions in this module.
Published: Nov 24, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type Labels (a) Allowed(metric, labels, values)
Documentation
¶
type Labels map [string ][]string
Labels provide a way to allow only specified labels for metrics.
Falls back to default labels, if your metric doesn't have defaults
then all labels are allowed.
func (a Labels) Allowed(metric string , labels, values []string ) ([]string , []string )
Allowed returns allowed metric keys and values for the metric.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.