collectors

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 20 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 RegisterCronJobCollector

func RegisterCronJobCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterDaemonSetCollector

func RegisterDaemonSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterDeploymentCollector

func RegisterDeploymentCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterEndpointCollector added in v1.2.0

func RegisterEndpointCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterHorizontalPodAutoScalerCollector added in v1.2.0

func RegisterHorizontalPodAutoScalerCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterJobCollector

func RegisterJobCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterLimitRangeCollector

func RegisterLimitRangeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterNamespaceCollector added in v1.1.0

func RegisterNamespaceCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

RegisterNamespaceCollector registry namespace collector

func RegisterNodeCollector

func RegisterNodeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterPersistentVolumeClaimCollector

func RegisterPersistentVolumeClaimCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterPersistentVolumeCollector added in v1.2.0

func RegisterPersistentVolumeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterPodCollector

func RegisterPodCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterReplicaSetCollector

func RegisterReplicaSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterReplicationControllerCollector

func RegisterReplicationControllerCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterResourceQuotaCollector

func RegisterResourceQuotaCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterServiceCollector

func RegisterServiceCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

func RegisterStatefulSetCollector

func RegisterStatefulSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, namespace string)

Types

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 ServiceLister

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

func (ServiceLister) List

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

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