๐Ÿ‘ฃ Getting Started

Accessing Grafana

Grafana will be available on port 3000. To access it, use the following link: http://your_ip:3000

Grafana Login

Note

The default username and password are both admin. Change them!
The first time you log in, you will be prompted to create a new password to ensure secure access.

Grafana Home

Accessing RR Flow API

The API will run on port 5000. To access it, use the following link: http://your_ip:5000/admin
RR Flow Login

Note

The default password is remontti

RR Flow admin

1st Data Source

To add your first data source (“Flow”/”Router”), review the structure of the configuration file config.json to better understand the overall context.

You can find the config.json file by accessing the Admin Panel under the Settings menu. RR Flow admin

Next, proceed with the 1st source_path and set up the integration with your router.

Once your router is integrated, restart the API.

Getting SNMP Data

With your source_path configured, go to the Admin Panel, and access the menu Get SNMP Data

RR Flow

To test if SNMP communication with your router is working, click the Test button.

RR Flow

If itโ€™s working, a SNMP OK message will appear. Now just click Get Interfaces and then Get Peers.

If you have any issues, check if your router is authorized to respond to queries from your RR Flow server address. You can find here some tools to debug this type of problem.

Once you have imported Interfaces and Peers, read the documentation for the interfaces.json file. Then, in the Admin Panel ยป Settings, find the interfaces.json file and edit it, adjusting upstream interfaces to “type”: 1.

RR Flow

Congratulations!

Your RR FLOW is now almost ready for use. To further enrich your data, it is essential to read the documentation.

  • Main files you should adjust:

  • It is very important to understand how Manual Filters work within the application, as these will take your knowledge to the next level. In various dashboards, you will find fields to type these filters, or in configuration files such as:

    • data_traffic_analysis.json - (Data traffic analysis)
    • custom-filters.json - (Custom filters)
  • I recommend watching the Video Tutorials here


External Grafana (Optional)

Requires advanced knowledge. (Not recommended)

Caution

If Grafana is running on an external server, I am not responsible for any accidental removal of other dashboards. I recommend installing each dashboard individually to avoid unwanted losses, or use the Grafana instance from the RR Flow API installation. Only Dashboards with the following TAGs will be removed:
RR-FLOW-M RR-FLOW RR-INFO RR-FLOW-HOME RR FLOW

Integrating the API with External Grafana

  • JSON API

    • Go to: Home page ยป Connections ยป Data sources
    • Then click on [Add data source]
    • Search for [JSON API] and click on it.
    • Click [Save & test], but before leaving, notice that in the URL, after “/edit/”, you will see the JSON API datasource uid. -Ex: http://192.168.87.28:3000/connections/datasources/edit/d686f6a48c4a
    • Write down the datasource id:
      • Ex.: d686f6a48c4a Home page
  • Service accounts

    • Home page ยป Administration ยป Users and access ยป Service accounts, we will now create a Token (Grafana API). This step is crucial to automate dashboard imports via RR Flow.
    • Click on [Add service account]
    • Fill in the fields Display Name: RR Flow API and Role: Admin and click [Create]
    • Click on [Add service account token]
    • Click [Generate token]
    • Click [Copy to clipboard and close]
    • Write down your token
      • Ex.: glsa_pUL0p6xJMpaY2ZaIVCClX4secEadvNNK_e835939c

Now, in the RR Flow API Admin Panel, go to Settings ยป Edit the config.json

Adjust datasources, service_token, and your grafana url:

    "grafana": [
        {
            "datasources": "d686f6a48c4a",
            "service_token": "glsa_pUL0p6xJMpaY2ZaIVCClX4secEadvNNK_e835939c",
            "url": "http://your-grafana-address:3000"
        }
    ],

Click [Save], and [Restart the API]

Now in the Grafana menu you will find all the dashboards ready for installation.