Converting YAML to JSON when configuring RTView

Knowledge Base

Converting YAML to JSON when configuring RTView

RTView is a new monitoring tool released by IOHK. When configuring or installing RTView, you might need the help of yaml to json converters.

Since LiveView will get removed from future releases, IOHK released a new tool called RTView which helps monitoring your nodes. It is available on GitHub. It is still in the very beginning and therefore don't expect too much of it. What's a bit of a burden is, that in most cases you also have to install apache2 or nginx as reverse proxy to access the statistics of RTView from client machines connected to your network.

After you completed the installation wizzard of RTView you will see a prompt like this:

Great, RTView is ready to run! Its configuration was saved at /home/ada/.config/rt-view.yaml. Press <Enter> to continue...

Now you have to make the following changes in your node's configuration file:

1. Find setupBackends and add TraceForwarderBK in it:

   setupBackends:
     - TraceForwarderBK

2. Find TurnOnLogMetrics and set it to True:

   TurnOnLogMetrics: True

3. Find options -> mapBackends and redirect required metrics to TraceForwarderBK, for example:

   options:
     mapBackends:
       cardano.node.metrics:
         - TraceForwarderBK
       cardano.node.Forge.metrics:
         - TraceForwarderBK

   For more info about supported metrics please read the documentation.

4. Since you have 3 nodes, add following traceForwardTo sections in the root of their configuration files:

   traceForwardTo:
     tag: RemoteSocket
     contents:
       - "IP.OF.YOUR.NODE1"
       - "PORT1"

   traceForwardTo:
     tag: RemoteSocket
     contents:
       - "IP.OF.YOUR.NODE2"
       - "PORT2"

   traceForwardTo:
     tag: RemoteSocket
     contents:
       - "IP.OF.YOUR.NODE3"
       - "PORT3"

After you are done, press <Enter> to run RTView...


In case you wonder how to integrate the above mentioned configs to your config json file, a simple yaml to json converter might help. There are plenty of them in the web. Here's one: https://dataconverter.curiousconcept.com/ . Just paste your code in there and convert it from yaml to json. I hope this makes things easier for you!

Have a great start with RTView!
written by: Chris     published at: Nov 8, 2020

Further articles you might be interested in


Knowledge Base

Voltaire

The Vasil hard fork has ushered us into “Basho”, the next-to-last era of the Cardano Roadmap. Soon we will enter into the final era, "Voltaire", planned from the very beginning of Cardano’s journey and development. This post is about Voltaire himself, one of the most advanced intellects of all time. His influence on the way we look at the world and the way we think about our world cannot be overstated. However, the scope of his writings and pursuits combined with the many places he lived during his lifetime cannot be covered in a blog post. Therefore I am touching upon the more important points of his life and work, leaving a deeper investigation up to you, the reader.

Oct 22, 2022, by Eric Hill


Knowledge Base

What Did Vasil St. Dabov Have In Common With CardanoCafe?

The Vasil Hard Fork is named after Vasil Stoyanov Dabov, the Bulgarian mathematician, environmentalist, entrepreneur, Cardano Ambassador, and friend of Charles Hoskinson who passed away on December 5th, 2021. Running parallel with his work in blockchain technology and his commitment to Cardano, was his lifelong pursuit of planting trees, more than 10,000 of them in all. His passion for tree planting is a direct connection to Cafe's reforestation project in Panama.

Jul 21, 2022, by Eric Hill


Knowledge Base

Vasil Dabov, Symbolism, and Cardano

My previous post highlighted the accomplishments and lifelong interests of Vasil St Dabov who Cardano's Vasil Hard Fork is named after. Along with being one of the first IT pioneers in Bulgaria, as well as a blockchain pioneer, an ecologist, an agronomist, a programming genius, and a Cardano Ambassador, in his personal life Vasil was passionate about Symbolism. In particular he took a deep interest in 5 symbols that represent enlightened thought, emerging consciousness, the interconnectivity of mind and body, and emerging patterns in biological and spiritual development: the Enneagram, the Leaves of the Ginkgo Biloba tree, the Tibetan Buddhist Dorje, Icosahedrons, and Cyrillic Script.

Sep 17, 2022, by Eric Hill


Knowledge Base

Cardano Eras

The greatly anticipated Vasil Hard Fork ushers in "Basho", the fourth Era of Cardano's planned growth and development.  Before presenting a basic overview of the features of the Vasil Hard Fork and the Basho Era, I thought it would be good to review the past Eras of the Cardano Roadmap, highlight who they are named after, and see how far we've come.

Jul 11, 2022, by Eric Hill


Knowledge Base

Rays Of Light During A Dark Time

With the crypto markets reeling from multiple negative upheavals and bad news coming in from seemingly every possible angle, I wanted to go against the tide of dark influences and put a different perspective out there for everyone in our Cafe family.

Jun 21, 2022, by Eric Hill