Embedding Dashboard Widgets in External Web Sites

Whether running a network operations center or a service status page, you may wish to embed a Dashboards widget on an external web page. The embedded widget can then provide the same information via the external web page that would otherwise require a ThousandEyes login.

What Is an Embedded Widget?

An embedded widget is a link to a dashboard widget that that you can use in the HTML source code of a web page. An embedded widget will show the original dashboard widget's content, allowing users to interact with the content using mouse-over to display detailed series values. The content of the widgets will automatically update as new data becomes available.

The HTML code to create an Embedded widget is automatically generated by the ThousandEyes platform, allowing users to copy and paste into their page's HTML source code.

Update Frequency

The embedded widget updates data automatically every 5 minutes - there's no need to refresh the page containing the widget. Each data point in the widget is the average of source data points in a time range from the source (test data, alert data, etc...). The time range of source data points per widget data point depends on the total number of days of data shown in the widget.

Days of Data

Widget Point Contains

Embedded Widget Updates Every

< 1 day

5 mins of data

5 mins

1-14d

1 hour of data

5 mins

14-30d

2 hours of data

5 mins

30-50d

4 hours of data

5 mins

50-90d

6 hours of data

5 mins

For example, with an HTTP server test as the source of data, and a dashboard widget displaying 12 hours of test data, each embedded widget data point will be the average of 5 minutes of test data. If the frequency of the test is 2 minutes, each embedded widget data point will be the average of either 2 or 3 test data points.

Creating the Embedded Widget Source Code

To create the HTML code for an embedded widget, select a dashboard widget in a dashboard, and click the menu on the upper right corner of the widget. Then select the Embed Widget option from the menu that pops up.

Before you create the HTML code for an embedded widget, you'll need to check a box that acknowledges that anybody can embed this code in an external site. Embedded widgets are managed via a unique, randomly generated key using the Universal Unique Identifier (UUID) method to provide a secure 128-bit number identifier. Any user who possesses the code with the link to the widget can access the data - there are no IP address restrictions, and access does not require authentication. It is important that you understand the impact of making your data available outside of the system before accepting these risks.

Once you accept the option, you'll be shown a dialog that lists the content used by the embedded widgets.

  1. Widget code: The HTML iframe code to embed this content in an external site.

  2. Data range: Change the data range displayed in the embedded widget to be different from the source widget's range. You can show as much as 90 days of data or as little as 1 hour of data. Keep in mind that the widget self-updates as new data is available, so this accounts for a rolling number of days/hours of data for the tests configured in the widget.

  3. Preview widget: A preview of the embedded widget is shown.

Inserting Embedded Widget Code into a Web Page

The ThousandEyes platform provides an iframe code snippet which can be inserted into the source code of a web page. This iframe is configured to use 100% of both the height and width of the parent container. The iframe is typically inserted into a an HTML div element of a page.

Each widget will contain a header line, which contains the widget name, and the ThousandEyes logo. This header is 75px in height, and is only shown once per widget.

If you have groupings defined (for example, one pie chart per continent), then you may have multiple charts to render, which will increase the minimum height of a particular widget.

Recommended minimum container sizing is as follows:

  • Number widgets

    • Width: 300px per card

    • Height: 200 pixels per row of cards

  • Table widgets

    • Width: 450px

    • Height: dependent on the number of rows included in the table

  • Time series and Stacked Area Time Series widgets

    • Width: As wide as possible. The x-axis scales with the widget width, so a wider time series chart makes for an easier-to-read chart.

    • Height: 225px per chart, plus the header

  • Bar and Column Chart widgets

    • For bar charts (horizontal orientation)

      • Width: 610px

      • Height: 370px

    • For column charts (vertical orientation)

      • Width: 610px

      • Height: varies based on number of data series and groupings. In general, at least 600px is recommended.

  • Pie charts

    • Width: the amount of available width controls how many pie charts get placed on each row. For each 505px of width, a pie chart will be placed in the available area. (1010px, 2 pie charts will be shown in each row)

    • Height:

      • 75px for header

      • 68px for legend

      • 300px per row of pie charts

Managing Embedded Widgets

Users can manage embedded widgets by from the Sharing > Embedded Widgets page. Expand an entry on the page to show the Embed management. Users with appropriate permissions can remove access to the embedded widget by unchecking the "Allow anyone to embed this widget onto external sites." checkbox, and can change the length of time shown.

Permissions

To create embedded widgets, users must have the following permission assigned to their role(s):

  • Embed own widgets: allows users to create embedded widgets from their own dashboards.

  • Embed widgets for all users in account group: allows users to create embedded widgets from any dashboard visible to your account group.

Last updated