timestream-datasource

module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Apache-2.0

README

Timestream Datasource

The Timestream datasource plugin provides a support for Amazon Timestream. Add it as a data source, then you are ready to build dashboards using timestream query results

Add the data source

  1. In the side menu under the Configuration link, click on Data Sources.
  2. Click the Add data source button.
  3. Select Timestream in the Time series databases section.

Authentication

The Timestream plugin authentication system matches the standard Cloudwatch plugin system. See the grafana documentation for authentication options and setup.

Once authentication is configured, click "Save and Test" to verify the service is working. Once this is configured, you can specify default values for the configuration.

Query editor

The query editor accepts timestream syntax in addition to the macros listed above and any dashboard template variables.

query-editor

Type ctrl+space to open open the IntelliSense suggestions

Macros

To simplify syntax and to allow for dynamic parts, like date range filters, the query can contain macros.

Macro example Description
$__database Will specify the selected database. This may use the default from the datasource config, or the explicit value from the query editor.
$__table Will specify the selected database. This may use the default from the datasource config, or the explicit value from the query editor.
$__measure Will specify the selected measure. This may use the default from the datasource config, or the explicit value from the query editor.
$__timeFilter Will be replaced by an expression that limits the time to the dashboard range
$__interval_ms Will be replaced by a number that represents the amount of time a single pixel in the graph should cover
Alerting

See the Alerting documentation for more on Grafana alerts.

Configure the data source with provisioning

You can configure data sources using config files with Grafana's provisioning system. You can read more about how it works and all the settings you can set for data sources on the provisioning docs page.

Here are some provisioning examples for this data source.

Using a credentials file

If you are using Credentials file authentication type, then you should use a credentials file with a config like this.

apiVersion: 1

datasources:
  - name: Timestream
    type: datasource
    jsonData:
      authType: credentials
      defaultRegion: us-east-1
Using accessKey and secretKey
apiVersion: 1

datasources:
  - name: Timestream
    type: datasource
    jsonData:
      authType: keys
      defaultRegion: us-east-1
    secureJsonData:
      accessKey: '<your access key>'
      secretKey: '<your secret key>'

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL