# Key Metrics for Fullnode

**URL:** <https://forums.sui.io/t/key-metrics-for-fullnode/17333>\
**Category:** Sui Network\
**Created:** [February 26, 2023, 4:31am UTC](https://forums.sui.io/t/key-metrics-for-fullnode/17333 "2023-02-26T04:31:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MalonPie](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/malonpie/32/7983_2.png) [@MalonPie](https://forums.sui.io/u/MalonPie)\
**Post date:** [February 26, 2023, 4:31am UTC](https://forums.sui.io/t/key-metrics-for-fullnode/17333/1 "2023-02-26T04:31:45Z")

</div>

# 1. Introduction

When you check the metrics endpoint, you will notice that there are a lot of metrics and counters.

**Command**

```auto
curl 127.0.0.1:9184/metrics

```

I believe that most of these metrics are used when just only for debug and diagnosing trivial issues by Sui Core Team and it is impossible to monitor carefully all metrics.  
I highly recommend that node operators pay attention to only the key metrics presented below.

Lets’s discuss which metrics is the important for your node 😊 👍

* * *

# 2. Network

- `sui_network_peers`  
This metrics count the number of peers your node is connected to.  
The number of connections should be `sui_network_peers > 0`.  
If `sui_network_peers = 0`, it mean that your node is unable to synchronize.  
Based on my experience at devnet and testnet, the metrics is total count of connection to inbound and outbound, besides validator and fullnode.

> If you don’t advertised your node, all count is connection to validator nodes.  
> At devnet, number of validator is 4, therefore this metrics is 4 stably.
> 
> (I hope the metrics will be separated into validator connection and fullnode connection.)

 ![Screenshot 2023-02-26 at 13.06.49](https://europe1.discourse-cdn.com/sui/original/2X/0/006bc29f55d9358ef6b663907b5cb1fea02ab6c1.png)

# 3. Sync

- `total_transaction_certificates`  
This metric displays the current synced version of the node.  
If this metric stops increasing, it means the node is not syncing.  
 ![Screenshot 2023-02-26 at 13.10.02](https://europe1.discourse-cdn.com/sui/original/2X/5/539acfa04ff37b43b854d313740a0b79ebdd8979.png)

> However, more important metrics is sync lag, but I can’t find the metrics regarding known-highest-version.  
> So, I recommend you should monitor checkpoint too.

- `highest_known_checkpoint`  
This metrics mean the highest checkpoint advertised to your node from other nodes.

- `highest_synced_checkpoint`  
This metrics mean the highest synced checkpoint at your node.

- `highest_known_checkpoint` - `highest_synced_checkpoint`  
You can check your node sync lag by diff `highest_known_checkpoint` and `highest_synced_checkpoint`.  
If this counter is large or growing, your node has some problem to sync.  

# 4. API

Each Full node stores and services the queries for the blockchain state and history.  
Therefore, this metrics is important for user who using your Fullnode (RPC endpoint).

- `rpc_requests_by_route`  
You can monitor and track the amount of REST API traffic on your node. You can also use the `route` in the metric to monitor the types of operations.  
 ![Screenshot 2023-02-26 at 13.14.18](https://europe1.discourse-cdn.com/sui/original/2X/8/84225b6ef6c2f2f1ed5b4d346d3680638318f460.png)

> By now, there is no metrics regarding counts the number of requests that were successfully.  
> I’d like to know that I can serve my RPC endpoint healthy, therefore I hope adding the metric to track the success and failure rate of the REST API.

# 5. Metrics for Validator

I have no experience about Sui validator.  
I’ll add the knowledge if you can get the opportunity to operate Sui validator.

I believe these metrics may be important.

- `epoch_total_gas_reward`
- `consensus_handler_processed_bytes`
- `current_requests_in_flight`
- `current_voting_right`
- `skipped_consensus_txns`
- `tallying_rule_scores`

* * *

# 5. Summary

As Sui continues to grow and develop, a lot of metrics will come and improve.  
These key metrics is important just now (Feb-2023).  
We should discuss and improve together. 💪

---

<div class="post-metadata">

**Author:** ![Evgenia](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/evgenia/32/6928_2.png) [@Evgenia](https://forums.sui.io/u/Evgenia)\
**Post date:** [February 26, 2023, 1:50pm UTC](https://forums.sui.io/t/key-metrics-for-fullnode/17333/2 "2023-02-26T13:50:13Z")

</div>

interesting information 💗 😊 👍 👏
