Documentation ¶
Index ¶
- Variables
- func RegisterCronJobCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterDaemonSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterDeploymentCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterEndpointCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterHorizontalPodAutoScalerCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterJobCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterLimitRangeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterNamespaceCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterNodeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterPersistentVolumeClaimCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterPersistentVolumeCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterPodCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterReplicaSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterReplicationControllerCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterResourceQuotaCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterServiceCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- func RegisterStatefulSetCollector(registry prometheus.Registerer, kubeClient kubernetes.Interface, ...)
- type CronJobLister
- type DaemonSetLister
- type DeploymentLister
- type EndpointLister
- type HPALister
- type JobLister
- type LimitRangeLister
- type NamespaceLister
- type NodeLister
- type PersistentVolumeClaimLister
- type PersistentVolumeLister
- type PodLister
- type ReplicaSetLister
- type ReplicationControllerLister
- type ResourceQuotaLister
- type ServiceLister
- type StatefulSetLister
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 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 HPALister ¶ added in v1.2.0
type HPALister func() (autoscaling.HorizontalPodAutoscalerList, error)
func (HPALister) List ¶ added in v1.2.0
func (l HPALister) List() (autoscaling.HorizontalPodAutoscalerList, error)
type LimitRangeLister ¶
type LimitRangeLister func() (v1.LimitRangeList, error)
func (LimitRangeLister) List ¶
func (l LimitRangeLister) List() (v1.LimitRangeList, error)
type NamespaceLister ¶ added in v1.1.0
NamespaceLister define NamespaceLister type
type NodeLister ¶
type PersistentVolumeClaimLister ¶
type PersistentVolumeClaimLister func() (v1.PersistentVolumeClaimList, error)
func (PersistentVolumeClaimLister) List ¶
func (l PersistentVolumeClaimLister) List() (v1.PersistentVolumeClaimList, error)
type PersistentVolumeLister ¶ added in v1.2.0
type PersistentVolumeLister func() (v1.PersistentVolumeList, error)
func (PersistentVolumeLister) List ¶ added in v1.2.0
func (pvl PersistentVolumeLister) List() (v1.PersistentVolumeList, 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 ¶
func (l ReplicationControllerLister) List() ([]v1.ReplicationController, error)
type ResourceQuotaLister ¶
type ResourceQuotaLister func() (v1.ResourceQuotaList, error)
func (ResourceQuotaLister) List ¶
func (l ResourceQuotaLister) List() (v1.ResourceQuotaList, error)
type ServiceLister ¶
type StatefulSetLister ¶
type StatefulSetLister func() ([]v1beta1.StatefulSet, error)
func (StatefulSetLister) List ¶
func (l StatefulSetLister) List() ([]v1beta1.StatefulSet, error)
Click to show internal directories.
Click to hide internal directories.