Skip to content

Commit 8165897

Browse files
authored
chore: combine centralized guide and tutorial and reorder guides (#526)
1 parent 148a9ad commit 8165897

File tree

3 files changed

+25
-41
lines changed

3 files changed

+25
-41
lines changed

.vitepress/config.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ function sidebarHome() {
322322
link: "/guides/use-rollkit-cli",
323323
},
324324
{
325-
text: "Create genesis for your rollup",
326-
link: "/guides/create-genesis",
325+
text: "Use Ignite to create a Rollkit app",
326+
link: "/guides/ignite-rollkit",
327327
},
328328
{
329329
text: "Restart your rollup",
@@ -337,17 +337,13 @@ function sidebarHome() {
337337
text: "Run a rollup full node",
338338
link: "/guides/full-node",
339339
},
340-
{
341-
text: "Run a centralized sequencer",
342-
link: "/guides/centralized-sequencer",
343-
},
344340
{
345341
text: "CometBFT into a Rollkit app",
346342
link: "/guides/cometbft-to-rollkit",
347343
},
348344
{
349-
text: "Use Ignite to create a Rollkit app",
350-
link: "/guides/ignite-rollkit",
345+
text: "Create genesis for your rollup",
346+
link: "/guides/create-genesis",
351347
},
352348
{
353349
text: "Configuration",

guides/centralized-sequencer.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

tutorials/sequencing/centralized.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ make build
3030
./build/centralized-sequencer -h
3131
```
3232

33+
You should see the following output:
34+
3335
```sh
3436
Usage:
3537
-host string
@@ -50,6 +52,7 @@ Usage:
5052
DA namespace where the sequencer submits transactions
5153
-db_path string
5254
path to the database
55+
...
5356
```
5457

5558
As shown by the help command, a centralized sequencer is configured to serve a rollup (via `rollup_id`). The DA network to persist the sequenced batches are specified using `da_address`, `da_auth_token` and `da_namespace`.
@@ -113,6 +116,24 @@ Then after a few blocks you should see this message confirming that your sequenc
113116
I[2024-11-15|16:04:07.698] successfully submitted Rollkit headers to DA layer module=BlockManager gasPrice=-1 daHeight=1 headerCount=14
114117
```
115118

119+
## Metrics {#metrics}
120+
121+
The `centralized-sequencer` node reports Prometheus metrics when the `-metrics` flag is enabled.
122+
123+
By default, metrics are exported to `http://localhost:8080/metrics`.
124+
125+
The listening address and port can be configured with the `-metrics-address` flag.
126+
127+
The following metrics are available:
128+
129+
| **Name** | **Type** | **Tags** | **Description** |
130+
|-------------------------------------------|-----------|-----------|------------------------------------------------------------------------|
131+
| sequencer_gas_price | Gauge | | Gas price of the DA transaction |
132+
| sequencer_last_blob_size | Gauge | | Last blob size submitted to the DA |
133+
| sequencer_transaction_status | Gauge | | Transaction status of the DA transaction |
134+
| sequencer_num_pending_blocks | Gauge | | Number of blocks pending DA submission |
135+
| sequencer_included_block_height | Gauge | | Block height of the last DA transaction |
136+
116137
## Summary {#summary}
117138

118139
By following these steps, you will have successfully set up and connected your chain to the centralized sequencer. You can now start submitting transactions to your chain.

0 commit comments

Comments
 (0)