diff --git a/go.mod b/go.mod index b68c0c310..89292c835 100644 --- a/go.mod +++ b/go.mod @@ -48,7 +48,7 @@ require ( kmodules.xyz/client-go v0.30.27 kmodules.xyz/custom-resources v0.30.0 kmodules.xyz/go-containerregistry v0.0.12 - kmodules.xyz/monitoring-agent-api v0.30.2-0.20241001043315-b98120efea48 + kmodules.xyz/monitoring-agent-api v0.30.2-0.20241016103618-f8be56efa23b kmodules.xyz/offshoot-api v0.30.1 kmodules.xyz/resource-metadata v0.19.1-0.20241016154015-205ef283ba59 kmodules.xyz/resource-metrics v0.30.4 diff --git a/go.sum b/go.sum index f80ae7760..c6a919603 100644 --- a/go.sum +++ b/go.sum @@ -930,8 +930,8 @@ kmodules.xyz/custom-resources v0.30.0 h1:vR3CbseHMLwR4GvtcJJuRuwIV8voKqFqNii27rM kmodules.xyz/custom-resources v0.30.0/go.mod h1:ZsTuI2mLG2s3byre7bHmpxJ9w0HDqAkRTL1+izGFI24= kmodules.xyz/go-containerregistry v0.0.12 h1:Tl32QGmSqRVm9PUEb/f3dgDeu9zW5fVzt3qmAFIE37I= kmodules.xyz/go-containerregistry v0.0.12/go.mod h1:KgeNg0hDsgeda+qc0NzWk0iVRdF0+ZIg/oRzGoYh78I= -kmodules.xyz/monitoring-agent-api v0.30.2-0.20241001043315-b98120efea48 h1:kJdO71ku1oU+IckB9myBvUi55PL5fcQ6vQXyZb9ljKk= -kmodules.xyz/monitoring-agent-api v0.30.2-0.20241001043315-b98120efea48/go.mod h1:oR3tk5O4koYar4cD9N3AjbBFr9XTwBU3sw9qD2NdNQc= +kmodules.xyz/monitoring-agent-api v0.30.2-0.20241016103618-f8be56efa23b h1:q7g/9AbOv6jIUB4KN9ya6rSYYGLJMRHTYZwEJuVAZuo= +kmodules.xyz/monitoring-agent-api v0.30.2-0.20241016103618-f8be56efa23b/go.mod h1:RFA3m9xmgUDT/yzTC5OMVkvKHl5FbpJbgLoHYYwzLVI= kmodules.xyz/offshoot-api v0.30.1 h1:TrulAYO+oBsXe9sZZGTmNWIuI8qD2izMpgcTSPvgAmI= kmodules.xyz/offshoot-api v0.30.1/go.mod h1:T3mpjR6fui0QzOcmQvIuANytW48fe9ytmy/1cgx6D4g= kmodules.xyz/resource-metadata v0.19.1-0.20241016154015-205ef283ba59 h1:0gErwOLp26ErRgl1K91e0MD+k+NRfp4gCTEDArQyTEM= diff --git a/vendor/kmodules.xyz/monitoring-agent-api/client/resource.go b/vendor/kmodules.xyz/monitoring-agent-api/client/resource.go index cd3308386..0eef8e252 100644 --- a/vendor/kmodules.xyz/monitoring-agent-api/client/resource.go +++ b/vendor/kmodules.xyz/monitoring-agent-api/client/resource.go @@ -62,7 +62,7 @@ func GetPodResourceUsage(pc promv1.API, obj metav1.ObjectMeta) core.ResourceList } resUsage[core.ResourceCPU] = cpuQuantity } else { - klog.ErrorS(err, "failed to get prometheus cpu query result") + klog.Infoln("failed to execute prometheus cpu query") } if res, err := getPromQueryResult(pc, promMemoryQuery); err == nil { @@ -77,7 +77,7 @@ func GetPodResourceUsage(pc promv1.API, obj metav1.ObjectMeta) core.ResourceList } resUsage[core.ResourceMemory] = memQuantity } else { - klog.ErrorS(err, "failed to get prometheus memory query result") + klog.Infoln("failed to execute prometheus memory query") } if res, err := getPromQueryResult(pc, promStorageQuery); err == nil { @@ -92,7 +92,7 @@ func GetPodResourceUsage(pc promv1.API, obj metav1.ObjectMeta) core.ResourceList } resUsage[core.ResourceStorage] = storageQuantity } else { - klog.ErrorS(err, "failed to get prometheus storage query result") + klog.Infoln("failed to execute prometheus storage query") } return resUsage diff --git a/vendor/modules.txt b/vendor/modules.txt index 83ce7b956..69e27195a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -2033,7 +2033,7 @@ kmodules.xyz/custom-resources/crds # kmodules.xyz/go-containerregistry v0.0.12 ## explicit; go 1.21.5 kmodules.xyz/go-containerregistry/name -# kmodules.xyz/monitoring-agent-api v0.30.2-0.20241001043315-b98120efea48 +# kmodules.xyz/monitoring-agent-api v0.30.2-0.20241016103618-f8be56efa23b ## explicit; go 1.22.0 kmodules.xyz/monitoring-agent-api/api/v1 kmodules.xyz/monitoring-agent-api/client