|
18 | 18 | type = types.listOf types.str; |
19 | 19 | description = "Ethereum hosts for the sequencer"; |
20 | 20 | }; |
| 21 | + metrics-collector-endpoint = mkOption { |
| 22 | + type = types.nullOr types.str; |
| 23 | + default = null; |
| 24 | + description = "OpenTelemetry OTLP metrics endpoint"; |
| 25 | + }; |
21 | 26 | l1ConsensusHostUrls = mkOption { |
22 | 27 | type = types.listOf types.str; |
23 | 28 | description = "L1 consensus host URLs for the sequencer"; |
|
56 | 61 | serviceConfig = { |
57 | 62 | WorkingDirectory = "/var/lib/aztec-sequencer"; |
58 | 63 |
|
59 | | - ExecStart = pkgs.writeShellScript "aztec-sequencer" '' |
60 | | - ${lib.getExe package} start --node --archiver --sequencer \ |
61 | | - --network alpha-testnet \ |
62 | | - --l1-rpc-urls ${lib.concatStringsSep "," cfg.ethereumHosts} \ |
63 | | - --l1-consensus-host-urls ${lib.concatStringsSep "," cfg.l1ConsensusHostUrls} \ |
64 | | - --sequencer.validatorPrivateKeys "$(cat ${cfg.validatorPrivateKeys})" \ |
65 | | - --sequencer.coinbase ${cfg.coinbase} \ |
66 | | - --p2p.p2pIp ${cfg.p2pIp} \ |
67 | | - --p2p.p2pPort ${toString cfg.p2pPort} |
68 | | - ''; |
| 64 | + ExecStart = pkgs.writeShellScript "aztec-sequencer" ( |
| 65 | + '' |
| 66 | + ${lib.getExe package} start --node --archiver --sequencer \ |
| 67 | + --network alpha-testnet \ |
| 68 | + --l1-rpc-urls ${lib.concatStringsSep "," cfg.ethereumHosts} \ |
| 69 | + --l1-consensus-host-urls ${lib.concatStringsSep "," cfg.l1ConsensusHostUrls} \ |
| 70 | + --sequencer.validatorPrivateKeys "$(cat ${cfg.validatorPrivateKeys})" \ |
| 71 | + --sequencer.coinbase ${cfg.coinbase} \ |
| 72 | + --p2p.p2pIp ${cfg.p2pIp} \ |
| 73 | + --p2p.p2pPort ${toString cfg.p2pPort} \ |
| 74 | + '' |
| 75 | + + lib.optionalString (cfg.metrics-collector-endpoint != null) '' |
| 76 | + --tel.metricsCollectorUrl ${cfg.metrics-collector-endpoint} |
| 77 | + '' |
| 78 | + ); |
69 | 79 | }; |
70 | 80 | }; |
71 | 81 |
|
|
0 commit comments