Monitoring your own performance is essential if you wish to achieve a high uptime. Below are two methods to do so.

Increment On-chain Metrics

Through Increment, you are able to view the proofs your Operator address has submitted.

Instructions

  1. Log into or signup to the Covalent platform.

  2. Filter the following SQL query so that it returns the results for your Operator address. This will display the number of proofs submitted by your address in 30-minute increments over the past 7 days.

    You can also filter the date range if you desire.

    SELECT
    	count(*) AS proofs,
    	hex(tx_sender) AS refiner_operator,
    	toStartOfInterval(signed_at, INTERVAL 30 MINUTE) AS interval_start
    FROM
    	blockchains.all_chains
    WHERE
    	chain_name = 'moonbeam_moonbase_alpha'
    	
    	--please enter your "Operator" address in this filter. Remove the '0x' at the beginning
    	AND tx_sender = unhex('7a6e49A5d018008Be6954eF6d5ccb99D44d6430a')
    	
    	--topic hash for 'BlockResultProductionProofSubmitted'
    	AND topic0 = unhex('8741f5bf89731b15f24deb1e84e2bbd381947f009ee378a2daa15ed8abfb9485')
    	
    	AND signed_at >= now() - INTERVAL 7 DAY
    GROUP BY
    	refiner_operator,
    	interval_start
    
  3. Go to Increment and select ‘Type SQL. Get Charts’. From here, paste in the above query and filter using your Operator address. Run and save the query once finished. If you create a line chart, you should have something like this if you are running the Refiner successfully after 7 days.

    Screenshot 2023-06-28 at 12.27.27.png

  4. If you wish to have a dashboard like so, you can go to ‘Pages’ and save your query to your page.

    Screenshot 2023-06-28 at 12.42.34.png

Prometheus dashboard

This involves monitoring the Prometheus dashboard that can be enabled with the Refiner. To set this up, please follow these instructions. Furthermore, pay close attention to the following metric:

Note, that this is local performance only, not on-chain submissions.