ITRS named a Visionary in the 2024 Gartner® Magic Quadrant™ for Digital Experience Monitoring

  1. Support
  2. Knowledge base
  3. Dashboards and reporting
  4. Grafana Integration

Display your monitoring data in Grafana

The Uptrends Grafana data source allows information about the status and statistics reported by Uptrends monitors and monitor groups to be displayed within a Grafana environment. It makes use of the Uptrends API to retrieve statistical data, or data about the current status, for your monitors and monitor groups.

This guide describes how to set up a basic Grafana instance that can connect to and pull data from Uptrends, so that it can be displayed in your Grafana environment. If you encounter any issues, have any questions, or would like to submit feedback, please contact us .

Prerequisites

  • An active Uptrends account.
  • A set of Uptrends APIv4 credentials: this guide will cover how to generate those.
  • A Grafana instance with access to the server configuration.

Pre configuration

Create an Uptrends APIv4 account

Note: If you already have a set of APIv4 credentials available, you can use those, and skip this step.

Grafana communicates with Uptrends through the API (version 4 - see the API documentation for more information), by requesting the relevant information and then displaying it in your Grafana dashboards. In order to make those requests, Grafana must have access to a registered API account. You can create an API account by following the instructions in the article Operator API account management .

The result of the steps outlined in that article is a username and password. Make sure to note these down, since you’ll need to add them to the data source in Grafana later on.

An API account is tied to an operator in Uptrends. Please ensure that the operator has at least the View monitor data in group permission for each of the monitors or monitor groups you wish to display in Grafana.

Installing the plugin

  1. Download the plugin — Uptrends Grafana plugin is currently at version 0.9.274 . You can download the latest zip file from this link .

  2. Extract the .zip and copy its contents to the Grafana plugin directory — the default location for the plugin directory is /var/lib/grafana/plugins. For more information, refer to the Grafana documentation.

  3. Enable the plugin — the plugin is currently unsigned, which means that it must be enabled explicitly within the Grafana configuration. To enable the plugin, do the following:

    • On the server that hosts your Grafana instance, locate grafana.ini (the default location is /etc/grafana/grafana.ini) and open the file with your preferred file editor.
    • Under [plugins] (you may have to scroll down quite far or use a search function), locate key allow_loading_unsigned_plugins.
    • Add the value uptrends-uptrends-plugin to the command allow_loading_unsigned_plugins.

Allow unsigned plugin

  1. Restart Grafana — the plugin should now be available for use in the Grafana interface.

Creating the data source

  1. In your Grafana interface, go to Configuration (the gear icon in the left-hand menu) -> Data sources.
  2. Click Add data source.
  3. Filter on Uptrends and click on the resulting plugin (it should be called uptrends-plugin).
  4. Enter the APIv4 username and password generated in the first step of this guide, or use an existing set of credentials.
  5. Click Save & test.

Creating data source

Create a dashboard

Now that the data source has been set up, it can start pulling data from Uptrends and populating Grafana dashboards with this data.

  1. Go to Dashboards > + New dashboard, or edit an existing dashboard.
  2. Click Add a new panel.

Editing a panel

  1. Ensure that the correct data source (called uptrends-plugin) is selected as the panel’s Data source.

  2. Choose a panel type in the top right corner, and fill out any further options as required in the right-hand menu.

  3. Choose the data you wish to display.

    - You can choose between either monitor status data (relating to your monitors' current error/ok status), or monitor statistics (related to monitor performance over time).

    - You can filter on a specific monitor or monitor group per query you add. The lists of monitors and monitors groups should automatically populate.

Selecting Uptrends data to display in the panel

  1. Click Apply in the top right corner.

The guide above is a very basic description of getting Uptrends data into Grafana. As a full product, Grafana supports many additional options.

By using the Uptrends website, you consent to the use of cookies in accordance with our Cookie Policy.