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{}{}, "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{}
func (*CollectorSet) Set ¶
func (c *CollectorSet) Set(value string) error
func (*CollectorSet) String ¶
func (c *CollectorSet) String() string
func (*CollectorSet) Type ¶
func (c *CollectorSet) Type() string
type NamespaceList ¶
type NamespaceList []string
func (*NamespaceList) IsAllNamespaces ¶
func (n *NamespaceList) IsAllNamespaces() bool
func (*NamespaceList) Set ¶
func (n *NamespaceList) Set(value string) error
func (*NamespaceList) String ¶
func (n *NamespaceList) String() string
func (*NamespaceList) Type ¶
func (n *NamespaceList) Type() string
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 // contains filtered or unexported fields }
func NewOptions ¶
func NewOptions() *Options
Click to show internal directories.
Click to hide internal directories.