chore(submitter): default metrics port to 8080

This commit is contained in:
Ahmad Kaouk 2026-02-26 14:58:22 +01:00
parent c90a38f4dc
commit b2ef393ed0
No known key found for this signature in database
GPG key ID: CF4E030983820DA8
4 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ COPY test/utils/ ./utils/
ENV NODE_ENV=production
EXPOSE 9090
EXPOSE 8080
USER submitter

View file

@ -40,8 +40,8 @@ network_id: "anvil"
execution_fee: "0.1"
relayer_fee: "0.2"
# Optional metrics port (default: 9090)
# metrics_port: 9090
# Optional metrics port (default: 8080)
# metrics_port: 8080
```
## Usage
@ -69,7 +69,7 @@ Private key precedence is: `--submitter-private-key` > `SUBMITTER_PRIVATE_KEY` >
## Observability
The submitter exposes a Prometheus metrics server on `metrics_port` (default `9090`):
The submitter exposes a Prometheus metrics server on `metrics_port` (default `8080`):
- `GET /metrics` — Prometheus metrics
- `GET /healthz` — liveness

View file

@ -106,7 +106,7 @@ function optionalHexString(raw: Record<string, unknown>, key: string): `0x${stri
function resolveMetricsPort(raw: Record<string, unknown>): number {
const port =
raw.metrics_port !== undefined && raw.metrics_port !== null ? Number(raw.metrics_port) : 9090;
raw.metrics_port !== undefined && raw.metrics_port !== null ? Number(raw.metrics_port) : 8080;
if (!Number.isFinite(port) || !Number.isInteger(port) || port < 1 || port > 65535) {
throw new Error(`Invalid metrics port: ${port}. Must be an integer between 1 and 65535.`);

View file

@ -20,5 +20,5 @@ network_id: "anvil"
execution_fee: "0.1"
relayer_fee: "0.2"
# Prometheus metrics server port (default: 9090)
# metrics_port: 9090
# Prometheus metrics server port (default: 8080)
# metrics_port: 8080