AWS IoT SiteWise Datasource
This datasource supports reading data from AWS IoT SiteWise and showing it in a Grafana dashboard.
Add the data source
- In the side menu under the Configuration link, click on Data Sources.
- Click the Add data source button.
- Select IoT sitewise in the Industrial & IoT section.
The IoT SiteWise plugin authentication matches the standard Cloudwatch plugin system. See the grafana cloudwatch 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.
Use the "query type" selector to pick an appropriate query.
Click on the "Explore" button to open an asset/model navigation interface:
Multiple aggregations can be showin for a single property:
Standard grafana alertings is support with this plugin, however note that alert queries may not include template variables. 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: IoT Sitewise type: datasource jsonData: authType: credentials defaultRegion: us-east-1
apiVersion: 1 datasources: - name: IoT Sitewise type: datasource jsonData: authType: keys defaultRegion: us-east-1 secureJsonData: accessKey: '<your access key>' secretKey: '<your secret key>'