Skip to content

Commit 0015478

Browse files
committed
Skip logging prometheus query
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 44112f0 commit 0015478

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ require (
4848
kmodules.xyz/client-go v0.30.27
4949
kmodules.xyz/custom-resources v0.30.0
5050
kmodules.xyz/go-containerregistry v0.0.12
51-
kmodules.xyz/monitoring-agent-api v0.30.2-0.20241001043315-b98120efea48
51+
kmodules.xyz/monitoring-agent-api v0.30.2-0.20241016103618-f8be56efa23b
5252
kmodules.xyz/offshoot-api v0.30.1
5353
kmodules.xyz/resource-metadata v0.19.1-0.20241016154015-205ef283ba59
5454
kmodules.xyz/resource-metrics v0.30.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,8 +930,8 @@ kmodules.xyz/custom-resources v0.30.0 h1:vR3CbseHMLwR4GvtcJJuRuwIV8voKqFqNii27rM
930930
kmodules.xyz/custom-resources v0.30.0/go.mod h1:ZsTuI2mLG2s3byre7bHmpxJ9w0HDqAkRTL1+izGFI24=
931931
kmodules.xyz/go-containerregistry v0.0.12 h1:Tl32QGmSqRVm9PUEb/f3dgDeu9zW5fVzt3qmAFIE37I=
932932
kmodules.xyz/go-containerregistry v0.0.12/go.mod h1:KgeNg0hDsgeda+qc0NzWk0iVRdF0+ZIg/oRzGoYh78I=
933-
kmodules.xyz/monitoring-agent-api v0.30.2-0.20241001043315-b98120efea48 h1:kJdO71ku1oU+IckB9myBvUi55PL5fcQ6vQXyZb9ljKk=
934-
kmodules.xyz/monitoring-agent-api v0.30.2-0.20241001043315-b98120efea48/go.mod h1:oR3tk5O4koYar4cD9N3AjbBFr9XTwBU3sw9qD2NdNQc=
933+
kmodules.xyz/monitoring-agent-api v0.30.2-0.20241016103618-f8be56efa23b h1:q7g/9AbOv6jIUB4KN9ya6rSYYGLJMRHTYZwEJuVAZuo=
934+
kmodules.xyz/monitoring-agent-api v0.30.2-0.20241016103618-f8be56efa23b/go.mod h1:RFA3m9xmgUDT/yzTC5OMVkvKHl5FbpJbgLoHYYwzLVI=
935935
kmodules.xyz/offshoot-api v0.30.1 h1:TrulAYO+oBsXe9sZZGTmNWIuI8qD2izMpgcTSPvgAmI=
936936
kmodules.xyz/offshoot-api v0.30.1/go.mod h1:T3mpjR6fui0QzOcmQvIuANytW48fe9ytmy/1cgx6D4g=
937937
kmodules.xyz/resource-metadata v0.19.1-0.20241016154015-205ef283ba59 h1:0gErwOLp26ErRgl1K91e0MD+k+NRfp4gCTEDArQyTEM=

vendor/kmodules.xyz/monitoring-agent-api/client/resource.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func GetPodResourceUsage(pc promv1.API, obj metav1.ObjectMeta) core.ResourceList
6262
}
6363
resUsage[core.ResourceCPU] = cpuQuantity
6464
} else {
65-
klog.ErrorS(err, "failed to get prometheus cpu query result")
65+
klog.Infoln("failed to execute prometheus cpu query")
6666
}
6767

6868
if res, err := getPromQueryResult(pc, promMemoryQuery); err == nil {
@@ -77,7 +77,7 @@ func GetPodResourceUsage(pc promv1.API, obj metav1.ObjectMeta) core.ResourceList
7777
}
7878
resUsage[core.ResourceMemory] = memQuantity
7979
} else {
80-
klog.ErrorS(err, "failed to get prometheus memory query result")
80+
klog.Infoln("failed to execute prometheus memory query")
8181
}
8282

8383
if res, err := getPromQueryResult(pc, promStorageQuery); err == nil {
@@ -92,7 +92,7 @@ func GetPodResourceUsage(pc promv1.API, obj metav1.ObjectMeta) core.ResourceList
9292
}
9393
resUsage[core.ResourceStorage] = storageQuantity
9494
} else {
95-
klog.ErrorS(err, "failed to get prometheus storage query result")
95+
klog.Infoln("failed to execute prometheus storage query")
9696
}
9797

9898
return resUsage

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ kmodules.xyz/custom-resources/crds
20332033
# kmodules.xyz/go-containerregistry v0.0.12
20342034
## explicit; go 1.21.5
20352035
kmodules.xyz/go-containerregistry/name
2036-
# kmodules.xyz/monitoring-agent-api v0.30.2-0.20241001043315-b98120efea48
2036+
# kmodules.xyz/monitoring-agent-api v0.30.2-0.20241016103618-f8be56efa23b
20372037
## explicit; go 1.22.0
20382038
kmodules.xyz/monitoring-agent-api/api/v1
20392039
kmodules.xyz/monitoring-agent-api/client

0 commit comments

Comments
 (0)