Visualize list of alarms

Prerequisites

Modules

Checkout branches

git checkout origin/osp-alarms-web-configuration .

Description

In this tutorial you will learn how to visualize an alarms list in a dashboard accessible from any web browser.

The value alarm list widget will use root.alarms.filters.all default provided filter and root.alarms.views.default view.

Steps

In the configuration :

1. Create a new empty dashboard

root/dashboards/alarm/dashboard.web

{
    "moduleId": "modules.web.web-1",
    "title": "Tutorial dashboard",
    "description": "Tutorial dashboard",
    "tags": ["Tutorial"]
}

root/dashboards/alarm/dashboard.view

{
    "configuration": [
    ],
    "layout": {
        "lg": []
    }
}

2. Push the configuration to the osp-configuration-dispatcher

git add .
git commit -m "Add new dashboard"
git pull
git push

1. Login to the dashboard and select previously created dashboard

../../_images/search-dashboard.png

4. Click on the edit dashboard button and add a new “Alarm table” widget

../../_images/edit-dashboard.png ../../_images/add-widget.png ../../_images/add-alarm-table.png

Click on the validate button.

5. Drag and drop the widget to layout along your needs, and click again on the edit dashboard button to generate the layout properly

At the moment, the value subscription widget should display an error about configuration.

6. Click on the edit dashboard button once again, click on the description button and copy its content

../../_images/describe-dashboard.png

It should be something like

root/dashboards/alarm/dashboard.view

{
    "configuration": [
        {
            "type": "AlarmTable",
            "id": "amq94Tog",
            "title": "",
            "alarmWidgetSettings": {
                "defaultFilter": "root.alarms.filters.all",
                "defaultView": "root.alarms.views.default"
            }
        }
    ],
    "layout": {
        "lg": [
            {
                "w": 12,
                "h": 4,
                "x": 0,
                "y": 0,
                "i": "amq94Tog"
            }
        ]
    },
    "breakpoints": {
        "lg": 1200,
        "md": 996,
        "sm": 768,
        "xs": 480,
        "xxs": 0
    },
    "cols": {
        "lg": 12,
        "md": 10,
        "sm": 6,
        "xs": 4,
        "xxs": 2
    }
}

7. Replace the previous content of the dashboard.view file by the content copied in the previous step, and push the modifications

git add .
git commit -m "Add alarm widget"
git pull
git push

8. Refresh the dashboard

../../_images/alarm-table.png

Add this example in your configuration

You can directly use the following command to add this example into your configuration :

git checkout origin/example-dashboard-alarm-table .