Send custom metrics to Prometheus via multichain API

+2 votes
Hi, I need to monitor the nodes of the blockchain with prometheus, I saw that there is no exporter for multichain, does anyone know how I can connect multichain with prometheus?
asked Feb 10, 2022 by anonymous

1 Answer

+1 vote

I think you would develop a script that is executed once per minute (or whatever) which retrieves the data you want from MultiChain and adds it to your Prometheus database. Some stats to look out for:

  • Memory pool size (transactions awaiting confirmation): getmempoolinfo command
  • Number of UTXOs in wallet (affects transaction building time): getwalletinfo command
  • Time since last block: getlastblockinfo command
answered Feb 10, 2022 by MultiChain
...