Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for CollectWithStability (0.27 sec)

  1. pkg/kubelet/metrics/collectors/log_metrics.go

    func (c *logMetricsCollector) DescribeWithStability(ch chan<- *metrics.Desc) {
    	ch <- descLogSize
    }
    
    // CollectWithStability implements the metrics.StableCollector interface.
    func (c *logMetricsCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	podStats, err := c.podStats(context.Background())
    	if err != nil {
    		klog.ErrorS(err, "Failed to get pod stats")
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/metrics/metrics.go

    func (c *totalPluginsCollector) DescribeWithStability(ch chan<- *metrics.Desc) {
    	ch <- totalPluginsDesc
    }
    
    // CollectWithStability implements the metrics.StableCollector interface.
    func (c *totalPluginsCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	for stateName, pluginCount := range c.getPluginCount() {
    		for socketPath, count := range pluginCount {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 08 01:16:57 UTC 2019
    - 2.7K bytes
    - Viewed (0)
  3. pkg/kubelet/metrics/collectors/volume_stats.go

    	ch <- volumeStatsInodesDesc
    	ch <- volumeStatsInodesFreeDesc
    	ch <- volumeStatsInodesUsedDesc
    	ch <- volumeStatsHealthAbnormalDesc
    }
    
    // CollectWithStability implements the metrics.StableCollector interface.
    func (collector *volumeStatsCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	ctx := context.Background()
    	podStats, err := collector.statsProvider.ListPodStats(ctx)
    	if err != nil {
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/metrics/metrics.go

    func (c *totalVolumesCollector) DescribeWithStability(ch chan<- *metrics.Desc) {
    	ch <- totalVolumesDesc
    }
    
    // CollectWithStability implements the metrics.StableCollector interface.
    func (c *totalVolumesCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	for stateName, pluginCount := range c.getVolumeCount() {
    		for pluginName, count := range pluginCount {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 06 16:48:59 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. pkg/kubelet/metrics/collectors/cri_metrics.go

    	for _, desc := range c.descriptors {
    		ch <- desc
    	}
    }
    
    // Collect implements the metrics.CollectWithStability interface.
    // TODO(haircommander): would it be better if these were processed async?
    func (c *criMetricsCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	podMetrics, err := c.listPodSandboxMetricsFn(context.Background())
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 23 13:24:29 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics.go

    func (c *monitorCollector) DescribeWithStability(ch chan<- *compbasemetrics.Desc) {
    	ch <- storageSizeDescription
    }
    
    // CollectWithStability implements compbasemetrics.StableColletor
    func (c *monitorCollector) CollectWithStability(ch chan<- compbasemetrics.Metric) {
    	monitors, err := c.getGetter()()
    	if err != nil {
    		return
    	}
    
    	for i, m := range monitors {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 21:15:32 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. pkg/kubelet/metrics/collectors/resource_metrics.go

    	ch <- resourceScrapeErrorResultDesc
    }
    
    // CollectWithStability implements metrics.StableCollector
    // Since new containers are frequently created and removed, using the Gauge would
    // leak metric collectors for containers or pods that no longer exist.  Instead, implement
    // custom collector in a way that only collects metrics for active containers.
    func (rc *resourceMetricsCollector) CollectWithStability(ch chan<- metrics.Metric) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 07:13:37 UTC 2023
    - 9.2K bytes
    - Viewed (1)
  8. pkg/proxy/metrics/metrics.go

    func (n *nfacctMetricCollector) DescribeWithStability(ch chan<- *metrics.Desc) {
    	ch <- n.description
    }
    
    // CollectWithStability implements the metrics.StableCollector interface.
    func (n *nfacctMetricCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	if n.client != nil {
    		counter, err := n.client.Get(n.counter)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. pkg/scheduler/metrics/resources/resources.go

    	lister corelisters.PodLister
    }
    
    func (c *podResourceCollector) DescribeWithStability(ch chan<- *metrics.Desc) {
    	podResourceDesc.Describe(ch)
    }
    
    func (c *podResourceCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	pods, err := c.lister.List(labels.Everything())
    	if err != nil {
    		return
    	}
    	reuseReqs, reuseLimits := make(v1.ResourceList, 4), make(v1.ResourceList, 4)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 23:15:53 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. pkg/controller/volume/attachdetach/metrics/metrics.go

    func (collector *attachDetachStateCollector) DescribeWithStability(ch chan<- *metrics.Desc) {
    	ch <- inUseVolumeMetricDesc
    	ch <- totalVolumesMetricDesc
    }
    
    func (collector *attachDetachStateCollector) CollectWithStability(ch chan<- metrics.Metric) {
    	nodeVolumeMap := collector.getVolumeInUseCount(klog.TODO())
    	for nodeName, pluginCount := range nodeVolumeMap {
    		for pluginName, count := range pluginCount {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 10 06:30:05 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top