Skip to content

Commit a3261d0

Browse files
committed
config(aztec): Add opentelemetry endpoint option
1 parent 2e14a60 commit a3261d0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/aztec/default.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
type = types.listOf types.str;
1919
description = "Ethereum hosts for the sequencer";
2020
};
21+
metrics-collector-endpoint = mkOption {
22+
type = types.str;
23+
default = "http://127.0.0.1:4318/v1/metrics";
24+
description = "OpenTelemetry OTLP metrics endpoint";
25+
};
2126
l1ConsensusHostUrls = mkOption {
2227
type = types.listOf types.str;
2328
description = "L1 consensus host URLs for the sequencer";
@@ -64,7 +69,8 @@
6469
--sequencer.validatorPrivateKeys "$(cat ${cfg.validatorPrivateKeys})" \
6570
--sequencer.coinbase ${cfg.coinbase} \
6671
--p2p.p2pIp ${cfg.p2pIp} \
67-
--p2p.p2pPort ${toString cfg.p2pPort}
72+
--p2p.p2pPort ${toString cfg.p2pPort} \
73+
--tel.metricsCollectorUrl ${cfg.metrics-collector-endpoint}
6874
'';
6975
};
7076
};

0 commit comments

Comments
 (0)