# Cardanoノードの正常性確認

### スロットハイトの確認

DB同期の確認として、スロット数が増えていることを確認します。

```
$ curl http://localhost:12798/metrics | grep cardano_node_metrics_slotNum_int
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2184    0  2184    0     0  2132k      0 --:--:-- --:--:-- --:--:-- 2132k
cardano_node_ChainDB_metrics_slotNum_int 20186800

```

### ブロックハイトの確認

DB同期の確認として、ブロック数が増えていることを確認します。

```
$ curl http://localhost:12798/metrics | grep cardano_node_metrics_blockNum_int
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2183    0  2183    0     0  2131k      0 --:--:-- --:--:-- --:--:-- 2131k
cardano_node_ChainDB_metrics_blockNum_int 5264191
```

### トランザクション有無の確認

DB同期が100%に追いついたら、BlockProducerNodeとRelayNodeでトラザクションのカウントが増えて行くことを確認します。ここの例では33870から33872へ増えていることが確認できます。

```
$ curl http://localhost:12798/metrics | grep cardano_node_metrics_txsProcessedNum_int
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2186    0  2186    0     0  2134k      0 --:--:-- --:--:-- --:--:-- 2134k
cardano_node_metrics_txsProcessedNum_int 33870

$ curl http://localhost:12798/metrics | grep cardano_node_metrics_txsProcessedNum_int
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2187    0  2187    0     0  2135k      0 --:--:-- --:--:-- --:--:-- 2135k
cardano_node_metrics_txsProcessedNum_int 33872
```

### KESキーの有効期間の確認

KESキーの有効期限が切れているとブロック生成ができなくなります。Block Producer Nodeから、下記コマンドで確認できます。

```
$ curl http://localhost:12798/metrics | grep cardano_node_metrics_remainingKESPeriods_int
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2188    0  2188    0     0  2136k      0 --:--:-- --:--:-- --:--:-- 2136k
cardano_node_Forge_metrics_remainingKESPeriods_int 55
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sugar-stake-pool.gitbook.io/cardano-kb/cardano-node-operation/cardanondono.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
