You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/reexecute/c/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,12 +44,13 @@ export AWS_REGION=us-east-2
44
44
45
45
If running locally, metrics collection can be customized via the following parameters:
46
46
47
-
-`METRICS_SERVER_PORT`: if set, starts a Prometheus server exporting VM metrics and sets the port the server will listen to.
48
-
-`METRICS_COLLECTOR_ENABLED`: starts a Prometheus collector. If `METRICS_SERVER_PORT` is not set, enabling the collector implicitly sets `METRICS_SERVER_PORT` to `0`.
47
+
-`METRICS_SERVER_ENABLED`: starts a Prometheus server exporting VM metrics.
48
+
-`METRICS_SERVER_PORT`: if set, determines the port the Prometheus server will listen to (set to `0` by default).
49
+
-`METRICS_COLLECTOR_ENABLED`: starts a Prometheus collector. If `METRICS_SERVER_ENABLED` is not set, enabling the collector implicitly sets `METRICS_SERVER_ENABLED` to `true`.
49
50
50
51
When utilizing the metrics collector feature, follow the instructions in the e2e [README](../../e2e/README.md#monitoring) to set the required Prometheus environment variables.
51
52
52
-
Running the re-execution test in CI will always set `METRICS_COLLECTOR_ENABLED=true`.
53
+
Running the re-execution test in CI will always set `METRICS_SERVER_ENABLED=true` and `METRICS_COLLECTOR_ENABLED=true`.
53
54
54
55
## Quick Start
55
56
@@ -237,7 +238,7 @@ The `CONFIG` parameter currently only supports pre-defined configs and not passi
237
238
238
239
The C-Chain benchmarks export VM metrics to the same Grafana instance as AvalancheGo CI: https://grafana-poc.avax-dev.network/.
239
240
240
-
To export metrics for a local run, simply set the Taskfile variable`METRICS_COLLECTOR_ENABLED=true` either via environment variable or passing it at the command line.
241
+
To export metrics for a local run, simply set the Taskfile variables `METRICS_SERVER_ENABLED=true` and`METRICS_COLLECTOR_ENABLED=true` either via environment variable or passing it at the command line.
241
242
242
243
You can view granular C-Chain processing metrics with the label attached to this job (job="c-chain-reexecution") [here](https://grafana-poc.avax-dev.network/d/Gl1I20mnk/c-chain?orgId=1&from=now-5m&to=now&timezone=browser&var-datasource=P1809F7CD0C75ACF3&var-filter=job%7C%3D%7Cc-chain-reexecution&var-chain=C&refresh=10s).
flag.IntVar(&chanSizeArg, "chan-size", 100, "Size of the channel to use for block processing.")
105
106
flag.DurationVar(&executionTimeout, "execution-timeout", 0, "Benchmark execution timeout. After this timeout has elapsed, terminate the benchmark without error. If 0, no timeout is applied.")
106
107
107
-
flag.Func("metrics-server-port", "Starts a metrics server and sets the port it will listen to", func(sstring) error {
108
-
port, err:=strconv.ParseUint(s, 10, 64)
109
-
iferr!=nil {
110
-
returnerr
111
-
}
112
-
113
-
metricsServerPort=new(uint64)
114
-
*metricsServerPort=port
115
-
returnnil
116
-
})
108
+
flag.BoolVar(&metricsServerEnabledArg, "metrics-server-enabled", false, "Whether to enable the metrics server.")
109
+
flag.Uint64Var(&metricsServerPortArg, "metrics-server-port", 0, "The port the metrics server will listen to.")
117
110
flag.BoolVar(&metricsCollectorEnabledArg, "metrics-collector-enabled", false, "Whether to enable the metrics collector (if true, then metrics-server-enabled must be true as well).")
118
111
flag.StringVar(&labelsArg, "labels", "", "Comma separated KV list of metric labels to attach to all exported metrics. Ex. \"owner=tim,runner=snoopy\"")
0 commit comments