Skip to content

Commit

Permalink
chore: combine centralized guide and tutorial and reorder guides (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey authored Dec 5, 2024
1 parent 148a9ad commit 8165897
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 41 deletions.
12 changes: 4 additions & 8 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ function sidebarHome() {
link: "/guides/use-rollkit-cli",
},
{
text: "Create genesis for your rollup",
link: "/guides/create-genesis",
text: "Use Ignite to create a Rollkit app",
link: "/guides/ignite-rollkit",
},
{
text: "Restart your rollup",
Expand All @@ -337,17 +337,13 @@ function sidebarHome() {
text: "Run a rollup full node",
link: "/guides/full-node",
},
{
text: "Run a centralized sequencer",
link: "/guides/centralized-sequencer",
},
{
text: "CometBFT into a Rollkit app",
link: "/guides/cometbft-to-rollkit",
},
{
text: "Use Ignite to create a Rollkit app",
link: "/guides/ignite-rollkit",
text: "Create genesis for your rollup",
link: "/guides/create-genesis",
},
{
text: "Configuration",
Expand Down
33 changes: 0 additions & 33 deletions guides/centralized-sequencer.md

This file was deleted.

21 changes: 21 additions & 0 deletions tutorials/sequencing/centralized.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ make build
./build/centralized-sequencer -h
```

You should see the following output:

```sh
Usage:
-host string
Expand All @@ -50,6 +52,7 @@ Usage:
DA namespace where the sequencer submits transactions
-db_path string
path to the database
...
```

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`.
Expand Down Expand Up @@ -113,6 +116,24 @@ Then after a few blocks you should see this message confirming that your sequenc
I[2024-11-15|16:04:07.698] successfully submitted Rollkit headers to DA layer module=BlockManager gasPrice=-1 daHeight=1 headerCount=14
```

## Metrics {#metrics}

The `centralized-sequencer` node reports Prometheus metrics when the `-metrics` flag is enabled.

By default, metrics are exported to `http://localhost:8080/metrics`.

The listening address and port can be configured with the `-metrics-address` flag.

The following metrics are available:

| **Name** | **Type** | **Tags** | **Description** |
|-------------------------------------------|-----------|-----------|------------------------------------------------------------------------|
| sequencer_gas_price | Gauge | | Gas price of the DA transaction |
| sequencer_last_blob_size | Gauge | | Last blob size submitted to the DA |
| sequencer_transaction_status | Gauge | | Transaction status of the DA transaction |
| sequencer_num_pending_blocks | Gauge | | Number of blocks pending DA submission |
| sequencer_included_block_height | Gauge | | Block height of the last DA transaction |

## Summary {#summary}

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 comments on commit 8165897

Please sign in to comment.