collectors

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScrapeErrorTotalMetric = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "ksm_scrape_error_total",
			Help: "Total scrape errors encountered when scraping a resource",
		},
		[]string{"resource"},
	)

	ResourcesPerScrapeMetric = prometheus.NewSummaryVec(
		prometheus.SummaryOpts{
			Name: "ksm_resources_per_scrape",
			Help: "Number of resources returned per scrape",
		},
		[]string{"resource"},
	)
)

Functions

func DaemonSetLabelsDesc added in v1.3.0

func DaemonSetLabelsDesc(labelKeys []string) *prometheus.Desc

func RegisterConfigMapCollector added in v1.3.0

func RegisterConfigMapCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterCronJobCollector

func RegisterCronJobCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterDaemonSetCollector

func RegisterDaemonSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterDeploymentCollector

func RegisterDeploymentCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterEndpointCollector added in v1.2.0

func RegisterEndpointCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterHorizontalPodAutoScalerCollector added in v1.2.0

func RegisterHorizontalPodAutoScalerCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterJobCollector

func RegisterJobCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterLimitRangeCollector

func RegisterLimitRangeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterNamespaceCollector added in v1.1.0

func RegisterNamespaceCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

RegisterNamespaceCollector registry namespace collector

func RegisterNodeCollector

func RegisterNodeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterPersistentVolumeClaimCollector

func RegisterPersistentVolumeClaimCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterPersistentVolumeCollector added in v1.2.0

func RegisterPersistentVolumeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterPodCollector

func RegisterPodCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterReplicaSetCollector

func RegisterReplicaSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterReplicationControllerCollector

func RegisterReplicationControllerCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterResourceQuotaCollector

func RegisterResourceQuotaCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterSecretCollector added in v1.3.0

func RegisterSecretCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterServiceCollector

func RegisterServiceCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

func RegisterStatefulSetCollector

func RegisterStatefulSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespaces []string)

Types

type ConfigMapLister added in v1.3.0

type ConfigMapLister func() ([]v1.ConfigMap, error)

func (ConfigMapLister) List added in v1.3.0

func (l ConfigMapLister) List() ([]v1.ConfigMap, error)

type CronJobLister

type CronJobLister func() ([]batchv1beta1.CronJob, error)

func (CronJobLister) List

func (l CronJobLister) List() ([]batchv1beta1.CronJob, error)

type DaemonSetLister

type DaemonSetLister func() ([]v1beta1.DaemonSet, error)

func (DaemonSetLister) List

func (l DaemonSetLister) List() ([]v1beta1.DaemonSet, error)

type DeploymentLister

type DeploymentLister func() ([]v1beta1.Deployment, error)

func (DeploymentLister) List

func (l DeploymentLister) List() ([]v1beta1.Deployment, error)

type EndpointLister added in v1.2.0

type EndpointLister func() ([]v1.Endpoints, error)

func (EndpointLister) List added in v1.2.0

func (l EndpointLister) List() ([]v1.Endpoints, error)

type HPALister added in v1.2.0

type HPALister func() (autoscaling.HorizontalPodAutoscalerList, error)

func (HPALister) List added in v1.2.0

type JobLister

type JobLister func() ([]v1batch.Job, error)

func (JobLister) List

func (l JobLister) List() ([]v1batch.Job, error)

type LimitRangeLister

type LimitRangeLister func() (v1.LimitRangeList, error)

func (LimitRangeLister) List

type NamespaceLister added in v1.1.0

type NamespaceLister func() ([]v1.Namespace, error)

NamespaceLister define NamespaceLister type

func (NamespaceLister) List added in v1.1.0

func (l NamespaceLister) List() ([]v1.Namespace, error)

List return namespace list

type NodeLister

type NodeLister func() (v1.NodeList, error)

func (NodeLister) List

func (l NodeLister) List() (v1.NodeList, error)

type PersistentVolumeClaimLister

type PersistentVolumeClaimLister func() (v1.PersistentVolumeClaimList, error)

func (PersistentVolumeClaimLister) List

type PersistentVolumeLister added in v1.2.0

type PersistentVolumeLister func() (v1.PersistentVolumeList, error)

func (PersistentVolumeLister) List added in v1.2.0

type PodLister

type PodLister func() ([]v1.Pod, error)

func (PodLister) List

func (l PodLister) List() ([]v1.Pod, error)

type ReplicaSetLister

type ReplicaSetLister func() ([]v1beta1.ReplicaSet, error)

func (ReplicaSetLister) List

func (l ReplicaSetLister) List() ([]v1beta1.ReplicaSet, error)

type ReplicationControllerLister

type ReplicationControllerLister func() ([]v1.ReplicationController, error)

func (ReplicationControllerLister) List

type ResourceQuotaLister

type ResourceQuotaLister func() (v1.ResourceQuotaList, error)

func (ResourceQuotaLister) List

type SecretLister added in v1.3.0

type SecretLister func() ([]v1.Secret, error)

func (SecretLister) List added in v1.3.0

func (l SecretLister) List() ([]v1.Secret, error)

type ServiceLister

type ServiceLister func() ([]v1.Service, error)

func (ServiceLister) List

func (l ServiceLister) List() ([]v1.Service, error)

type SharedInformerList added in v1.3.0

type SharedInformerList []cache.SharedInformer

func NewSharedInformerList added in v1.3.0

func NewSharedInformerList(client rest.Interface, resource string, namespaces []string, objType runtime.Object) *SharedInformerList

func (SharedInformerList) Run added in v1.3.0

func (sil SharedInformerList) Run(stopCh <-chan struct{})

type StatefulSetLister

type StatefulSetLister func() ([]v1beta1.StatefulSet, error)

func (StatefulSetLister) List

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL