Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultNamespaces is the default namespace selector for selecting and filtering across all namespaces. DefaultNamespaces = koptions.NamespaceList{metav1.NamespaceAll} // DefaultResources represents the default set of resources in cluster-api-state-metrics. DefaultResources = koptions.ResourceSet{ "clusters": struct{}{}, "machines": struct{}{}, "machinedeployments": struct{}{}, "kubeadmcontrolplanes": struct{}{}, "machinesets": struct{}{}, } )
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Apiserver string
Kubeconfig string
Help bool
Port int
Host string
TelemetryPort int
TelemetryHost string
TLSConfig string
Resources koptions.ResourceSet
Namespaces koptions.NamespaceList
NamespacesDenylist koptions.NamespaceList
MetricDenylist koptions.MetricSet
MetricAllowlist koptions.MetricSet
Version bool
AnnotationsAllowList koptions.LabelsAllowList
LabelsAllowList koptions.LabelsAllowList
EnableGZIPEncoding bool
UseAPIServerCache bool
// contains filtered or unexported fields
}
Options are the configurable parameters for kube-state-metrics.
func (*Options) AddFlags ¶
func (o *Options) AddFlags()
AddFlags populated the Options struct from the command line arguments passed.
Click to show internal directories.
Click to hide internal directories.