Skip to content

Commit

Permalink
COST-2096: query update - use sum instead of max (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Dec 9, 2021
1 parent 6d30116 commit 7c413e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 51 deletions.
16 changes: 8 additions & 8 deletions collector/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ var (
MetricKey: staticFields{"pod": "pod", "namespace": "namespace", "node": "node"},
QueryValue: &saveQueryValue{
ValName: "pod-limit-cpu-cores",
Method: "max",
Factor: maxFactor,
Method: "sum",
Factor: sumFactor,
TransformedName: "pod-limit-cpu-core-seconds",
},
RowKey: "pod",
Expand All @@ -145,8 +145,8 @@ var (
MetricKey: staticFields{"pod": "pod", "namespace": "namespace", "node": "node"},
QueryValue: &saveQueryValue{
ValName: "pod-limit-memory-bytes",
Method: "max",
Factor: maxFactor,
Method: "sum",
Factor: sumFactor,
TransformedName: "pod-limit-memory-byte-seconds",
},
RowKey: "pod",
Expand All @@ -158,8 +158,8 @@ var (
MetricKey: staticFields{"pod": "pod", "namespace": "namespace", "node": "node"},
QueryValue: &saveQueryValue{
ValName: "pod-request-cpu-cores",
Method: "max",
Factor: maxFactor,
Method: "sum",
Factor: sumFactor,
TransformedName: "pod-request-cpu-core-seconds",
},
RowKey: "pod",
Expand All @@ -171,8 +171,8 @@ var (
MetricKey: staticFields{"pod": "pod", "namespace": "namespace", "node": "node"},
QueryValue: &saveQueryValue{
ValName: "pod-request-memory-bytes",
Method: "max",
Factor: maxFactor,
Method: "sum",
Factor: sumFactor,
TransformedName: "pod-request-memory-byte-seconds",
},
RowKey: "pod",
Expand Down
Loading

0 comments on commit 7c413e9

Please sign in to comment.