Skip to content

Commit ebbcf43

Browse files
committed
allow caching for anvil, update dashboard
1 parent cac07d4 commit ebbcf43

File tree

2 files changed

+7
-4
lines changed
  • framework

2 files changed

+7
-4
lines changed

framework/components/blockchain/anvil.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ func defaultAnvil(in *Input) {
3333

3434
// newAnvil deploy foundry anvil node
3535
func newAnvil(in *Input) (*Output, error) {
36+
if in.Out != nil && in.Out.UseCache {
37+
return in.Out, nil
38+
}
3639
defaultAnvil(in)
3740
req := baseRequest(in, WithoutWsEndpoint)
3841

framework/observability/compose/conf/provisioning/dashboards/df-soak/df-soak.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"uid": "P8E80F9AEF21F6940"
120120
},
121121
"editorMode": "code",
122-
"expr": "count_over_time(\n {job=\"ctf\"} |= \"Sending transaction\" [1s]\n)",
122+
"expr": "count_over_time(\n {job=\"ctf\"} |= \"Sending transaction\" [$__interval]\n)",
123123
"legendFormat": "{{service_name}}",
124124
"queryType": "range",
125125
"refId": "A"
@@ -294,7 +294,7 @@
294294
"uid": "P8E80F9AEF21F6940"
295295
},
296296
"editorMode": "code",
297-
"expr": "count_over_time(\n {job=\"ctf\"} |= \"sent transaction\" [1s]\n)",
297+
"expr": "count_over_time(\n {job=\"ctf\"} |= \"sent transaction\" [$__interval]\n)",
298298
"legendFormat": "{{service_name}}",
299299
"queryType": "range",
300300
"refId": "A"
@@ -870,7 +870,7 @@
870870
"overrides": []
871871
},
872872
"gridPos": {
873-
"h": 4,
873+
"h": 5,
874874
"w": 5,
875875
"x": 10,
876876
"y": 16
@@ -1009,7 +1009,7 @@
10091009
"list": []
10101010
},
10111011
"time": {
1012-
"from": "now-15m",
1012+
"from": "now-5m",
10131013
"to": "now"
10141014
},
10151015
"timepicker": {},

0 commit comments

Comments
 (0)