Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4163

Create Multiple Traffic Comparison/portpercent widgets on the Frontpage

Details

    Description

      We currently have our Observium Instance configured with port groups for our different Providers, in each Data Centre. I'm trying to configure our front page with Traffic Comparison widgets to show the traffic in each data centre. I have gone through documentation and forums online but can't find a solution to this. I feel like there should be config that I can put in the 'widget_config' array for each widget to define the port groups.

      Currently I just have one widget configured via the config.php file.

      Attachments

        Activity

          [OBS-4163] Create Multiple Traffic Comparison/portpercent widgets on the Frontpage

          This is indeed possible via the widget_config field, but not documented.

          adama Adam Armstrong added a comment - This is indeed possible via the widget_config field, but not documented.
          ThatMorneGuy Morne added a comment -

          For those looking for an answer to the same question. After digging around in the source code I found a solution. It requires creating the extra widgets and then updating the record of the dash_widgets table in the database. Insert the below template into the widget_config column.

          {"groups": {"Group 1 Description": {"group": 1}, "Group 2 Description": {"group": 2}, "Group 3 Description": {"group": 3}}, "graph_format": "multi_bare"} 

          Edit the template with the Description and Group ID of your groups. Repeat for different Widgets.

          ThatMorneGuy Morne added a comment - For those looking for an answer to the same question. After digging around in the source code I found a solution. It requires creating the extra widgets and then updating the record of the dash_widgets table in the database. Insert the below template into the widget_config column. { "groups" : { "Group 1 Description" : { "group" : 1 }, "Group 2 Description" : { "group" : 2 }, "Group 3 Description" : { "group" : 3 }}, "graph_format" : "multi_bare" } Edit the template with the Description and Group ID of your groups. Repeat for different Widgets.

          People

            adama Adam Armstrong
            ThatMorneGuy Morne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: