Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for cadvisorapiv2 (0.29 sec)

  1. pkg/kubelet/stats/cri_stats_provider_linux.go

    	ps *statsapi.PodStats, fsIDtoInfo map[runtimeapi.FilesystemIdentifier]*cadvisorapiv2.FsInfo,
    	containerMap map[string]*runtimeapi.Container,
    	podSandbox *runtimeapi.PodSandbox,
    	rootFsInfo *cadvisorapiv2.FsInfo, updateCPUNanoCoreUsage bool) error {
    	for _, criContainerStat := range criSandboxStat.Linux.Containers {
    		container, found := containerMap[criContainerStat.Attributes.Id]
    		if !found {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 11:09:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/host_stats_provider_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package stats
    
    import (
    	"reflect"
    	"testing"
    
    	cadvisorapiv2 "github.com/google/cadvisor/info/v2"
    
    	kubecontainertest "k8s.io/kubernetes/pkg/kubelet/container/testing"
    
    	"k8s.io/apimachinery/pkg/types"
    	statsapi "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 10 11:26:59 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. pkg/kubelet/runonce_test.go

    	cadvisor := cadvisortest.NewMockInterface(mockCtrl)
    	cadvisor.EXPECT().MachineInfo().Return(&cadvisorapi.MachineInfo{}, nil).AnyTimes()
    	cadvisor.EXPECT().ImagesFsInfo().Return(cadvisorapiv2.FsInfo{
    		Usage:     400,
    		Capacity:  1000,
    		Available: 600,
    	}, nil).AnyTimes()
    	cadvisor.EXPECT().RootFsInfo().Return(cadvisorapiv2.FsInfo{
    		Usage:    9,
    		Capacity: 10,
    	}, nil).AnyTimes()
    	fakeSecretManager := secret.NewFakeManager()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 06:59:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/container_manager_linux_test.go

    	defer mockCtrlError.Finish()
    
    	mockCadvisor := cadvisortest.NewMockInterface(mockCtrl)
    	rootfs := cadvisorapiv2.FsInfo{
    		Capacity: 8000,
    	}
    	mockCadvisor.EXPECT().RootFsInfo().Return(rootfs, nil)
    	mockCadvisorError := cadvisortest.NewMockInterface(mockCtrlError)
    	mockCadvisorError.EXPECT().RootFsInfo().Return(cadvisorapiv2.FsInfo{}, errors.New("Unable to get rootfs data from cAdvisor interface"))
    	cases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. pkg/kubelet/cadvisor/util.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cadvisor
    
    import (
    	"strings"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    	cadvisorapi2 "github.com/google/cadvisor/info/v2"
    	"k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	v1helper "k8s.io/kubernetes/pkg/apis/core/v1/helper"
    )
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 04 05:08:20 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. pkg/kubelet/winstats/network_stats_test.go

    	// have to be cleaned up after processing the data.
    	netCounter.adapterStats["other-fake-adapter"] = cadvisorapi.InterfaceStats{}
    
    	data, err := netCounter.getData()
    	assert.NoError(t, err)
    
    	// Make sure that we only have data from a single net adapter.
    	expectedStats := cadvisorapi.InterfaceStats{
    		Name:      fakeAdapterName,
    		RxPackets: 1,
    		TxPackets: 1,
    		RxBytes:   1,
    		TxBytes:   1,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 12:08:15 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. pkg/kubelet/winstats/perfcounter_nodestats.go

    }
    
    func (p *perfCounterNodeStatsClient) getMachineInfo() (*cadvisorapi.MachineInfo, error) {
    	hostname, err := os.Hostname()
    	if err != nil {
    		return nil, err
    	}
    
    	systemUUID, err := getSystemUUID()
    	if err != nil {
    		return nil, err
    	}
    
    	bootId, err := getBootID()
    	if err != nil {
    		return nil, err
    	}
    
    	return &cadvisorapi.MachineInfo{
    		NumCores:       ProcessorCount(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/topologymanager/numa_info.go

    */
    
    package topologymanager
    
    import (
    	"fmt"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    	"k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/bitmask"
    )
    
    type NUMADistances map[int][]uint64
    
    type NUMAInfo struct {
    	Nodes         []int
    	NUMADistances NUMADistances
    }
    
    func NewNUMAInfo(topology []cadvisorapi.Node, opts PolicyOptions) (*NUMAInfo, error) {
    	var numaNodes []int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 16:52:14 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  9. pkg/kubelet/winstats/perfcounter_nodestats_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package winstats
    
    import (
    	"os"
    	"strconv"
    	"testing"
    	"time"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    	"github.com/google/uuid"
    	"github.com/stretchr/testify/assert"
    	"k8s.io/apimachinery/pkg/util/wait"
    )
    
    func TestMonitoring(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 18:37:21 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/fake_kuberuntime_manager.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package kuberuntime
    
    import (
    	"context"
    	"net/http"
    	"time"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    	"go.opentelemetry.io/otel/trace"
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top