Plugins 〉Sift


Developer

Sift

Sign up to receive occasional product news and updates:


Grafana Cloud
Grafana Cloud
  • Grafana, of course
  • 10k series Prometheus metrics
  • 50 GB logs
  • 50 GB traces
  • 2,232 app o11y host hours
  • ...and more
Create free account

No credit card needed, ever.


Data Source
commercial

Sift

  • Overview
  • Installation
  • Change log
  • Related content

Sift Grafana Datasource

Grafana 11 License GitHub release (latest by date)

Overview

This is a Grafana datasource plugin for Sift. It allows you to query Sift for data and visualize it in Grafana dashboards. The plugin supports both simple channel queries and calculated channel expressions.

Grafana Query Screenshot - Channel Query Grafana Query Screenshot - Calculated Channel Query

Compatibility

This plugin is compatible with Grafana versions 11.0.0 and above.

User Guide

Configuration

To configure the plugin, you will need:

  1. The Sift REST API endpoint URL
  2. A valid Sift API key

Instructions for getting these values can be found in the Sift documentation. Enter these values when creating the datasource in Grafana.

Usage

  1. Create a dashboard and add a panel
  2. Select the Sift data source
  3. Click "Add Query" and select either a Channel or Calculated Channel query
  4. Configure query
  5. Query will be run after selection or clicking outside the input or by clicking the Refresh button
  6. Additional Queries can be added using the "Add Query" button to use both Channel and Calculated Channel queries in the same panel

Selection Types

Selection of Assets, Runs, and Channels can be done using multiple different input types. Input type may be changed using the "Change input type" button.

  • Selection: Select from a list of options. Filter down the list by entering a search term. Only 200 will be shown at a time and a search may be required to find a specific option.
  • Text: Enter the exact name of the Asset, Run, or Channel. This will only return exact matches.
  • ID/Client Key: Enter the ID or Client Key of the Asset, Run, or Channel.
  • Regex: Enter a regular expression to find multiple Assets, Runs, or Channels by their name. This may return multiple matches. By default, the query is a substring match.
  • Grafana Variable Selection: Only available for Assets. Provides a list of Grafana dashboard variables that are Sift Asset Query variables (See below).

Channels and Runs can only use the Selection type when an Asset option has been selected using the Selection dropdown.

Grouping

By default, data is combined from multiple Runs into a single trace. To group by Channel and Run , uncheck "Combine Runs".

Asset Query Variables

Query variables can be used to dynamically select Assets.

To add an Asset selector to your dashboard:

  1. Go to the Dashboard settings
  2. Click the "Variables" tab
  3. Click "New Variable" button
  4. Select variable type "Query"
  5. Select Data Source "Sift"
  6. Configure remaining options to your preference

The dashboard variable will allow for selecting Multiple, All, or a single Asset. The variable can be selected from the dashboard variable selector in the query editor for Asset.

Other Dashboard Variables

Other dashboard variables can be in any text input field such as name, ID, calculated channel name, or expression.

To use a dashboard variable in a query, enter the name as: ${variableName}. The variable will be replaced with the string value of the variable when the query is executed.

Caching

To improve performance, queries are cached by panel for a given query and associated interval (sample rate). If the query range changes, but the query is otherwise the same, only the missing data on either side will be fetched. In the case where the right side of the query range is close to live, new data will always be queried for data between now and the last 10 minutes.

Asset, Run, and Channel queries are cached to speed up regular expression queries. These caches will expire after 10 minutes.

Both caches may be cleared for a panel by clicking the "Clear cache" button next to the Query Mode selector.

Learn More

Contributing

Please submit bug reports and pull requests to the Sift Grafana Datasource repository on GitHub.

Installing Sift on Grafana Cloud:

For more information, visit the docs on plugin installation.

Installing on a local Grafana:

For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.

1. Install the Data Source

Use the grafana-cli tool to install Sift from the commandline:

grafana-cli plugins install 

The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.

2. Configure the Data Source

Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.

Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.

To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.

Changelog

1.0.0

Initial release.

1.0.3

Added Freeform Text Queries and Asset Variables

1.0.4

The channel selector is now a searchable dropdown

1.0.5

  • Added Calculated Channel Queries
  • Freeform Text Queries are now Regex searches for both Assets and Channels

1.0.6

  • Allowed grouping/ungrouping channels by run
  • Regex channel searching combines component and name searches
  • Data loading optimizations

1.0.7

  • Fixed bug with uint64 and int64 data types
  • Fixed the hide query button
  • Added concrete channel tags to calculated channel results
  • Debounced channel selector to improve performance

1.0.8

  • Channels are always displayed in alphabetical order

1.0.9

  • Calculated channels are always displayed in alphabetical order

1.0.10

  • Fixed a bug that was adding the time channel at the end of the frame