From e1a84dc5946f8762d896c58753fd630ef22c4989 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 16 Oct 2024 03:38:35 -0700 Subject: [PATCH] Skip logging prometheus query Signed-off-by: Tamal Saha --- go.mod | 2 +- go.sum | 4 ++-- vendor/kmodules.xyz/monitoring-agent-api/client/resource.go | 6 +++--- vendor/modules.txt | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index cc41505c2..bcb76a9a5 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.20241016102627-335f7dd822c4 kmodules.xyz/resource-metrics v0.30.4 diff --git a/go.sum b/go.sum index 23e603a2b..af45215fe 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.20241016102627-335f7dd822c4 h1:NoV0dPAvU1/eTPNlj6Oi6AhU+oUzUi9pMQjntMzLVMk= 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 64b07572c..83e77126e 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