Skip to content

Commit 3316a6d

Browse files
authored
Add gas used metric to web3 hpa (#11632)
* add gas used metric to web3 hpa --------- Signed-off-by: Jesse Nelson <[email protected]>
1 parent 12cf97b commit 3316a6d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

charts/hedera-mirror-common/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,16 @@ prometheus-adapter:
234234
name:
235235
as: "requests_per_second"
236236
metricsQuery: "sum(rate(<<.Series>>{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>)"
237+
- seriesQuery: 'hiero_mirror_web3_evm_gas_used_total{application="web3",namespace!="",pod!=""}'
238+
resources:
239+
overrides:
240+
namespace:
241+
resource: "namespace"
242+
pod:
243+
resource: "pod"
244+
name:
245+
as: "evm_gas_used_per_second"
246+
metricsQuery: 'sum(rate(<<.Series>>{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>)'
237247

238248
prometheus:
239249
alertmanager:

charts/hedera-mirror-web3/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ hpa:
104104
target:
105105
type: Utilization
106106
averageUtilization: 80
107+
- type: Pods
108+
pods:
109+
metric:
110+
name: evm_gas_used_per_second
111+
target:
112+
type: AverageValue
113+
averageValue: 6750k
107114
minReplicas: 1
108115

109116
image:

0 commit comments

Comments
 (0)