Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultNamespaces = NamespaceList{metav1.NamespaceAll}
DefaultCollectors = CollectorSet{
"daemonsets": struct{}{},
"deployments": struct{}{},
"limitranges": struct{}{},
"nodes": struct{}{},
"pods": struct{}{},
"poddisruptionbudgets": struct{}{},
"replicasets": struct{}{},
"replicationcontrollers": struct{}{},
"resourcequotas": struct{}{},
"services": struct{}{},
"jobs": struct{}{},
"cronjobs": struct{}{},
"statefulsets": struct{}{},
"persistentvolumes": struct{}{},
"persistentvolumeclaims": struct{}{},
"namespaces": struct{}{},
"horizontalpodautoscalers": struct{}{},
"endpoints": struct{}{},
"secrets": struct{}{},
"configmaps": struct{}{},
}
)
Functions ¶
This section is empty.
Types ¶
type CollectorSet ¶
type CollectorSet map[string]struct{}
type NamespaceList ¶
type NamespaceList []string
func (*NamespaceList) IsAllNamespaces ¶
func (n *NamespaceList) IsAllNamespaces() bool
type Options ¶
type Options struct {
Apiserver string
Kubeconfig string
Help bool
Port int
Host string
TelemetryPort int
TelemetryHost string
Collectors CollectorSet
Namespaces NamespaceList
MetricBlacklist MetricSet
MetricWhitelist MetricSet
Version bool
DisablePodNonGenericResourceMetrics bool
DisableNodeNonGenericResourceMetrics bool
EnableGZIPEncoding bool
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions() *Options
Click to show internal directories.
Click to hide internal directories.