mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 01:38:32 +00:00
chore(submitter): default metrics port to 8080
This commit is contained in:
parent
c90a38f4dc
commit
b2ef393ed0
4 changed files with 7 additions and 7 deletions
|
|
@ -31,7 +31,7 @@ COPY test/utils/ ./utils/
|
|||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
EXPOSE 9090
|
||||
EXPOSE 8080
|
||||
|
||||
USER submitter
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.`);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue