NOTE: This plugin is no longer maintained by LinkSmart. Please visit frost-sensorthings-datasource.
A Grafana Data Source plugin to query observation and location data from an OGC SensorThings server for visualization on Grafana panels.
It provides:
A live dashboard showing SensorThings data in Grafana panels: SensorThings Dashboard
Add data source
.http://localhost:8080/v1.0
), without trailing slash.There are several ways to query Observations and Locations. The Observations are sorted descendingly by phenomenonTime.
The queries options are:
If the Datastream has OM_Observation for observationType, the particular values can be selected from the result object inside each Observation. The selection can be done using JSONPath expressions. Few examples are available here.
Using the Grafana Worldmap Panel, one can see latest Locations of Things on the map. Currently, only a single Thing can be visualized.
Install world map panel from grafana plugin store.
Add the map panel in dashboard
Under Worldmap
tab of the panel configuration:
Map Visual Options
:
Center
to Last GeoHash
Max Circle Size
to 5Map Data Options
:
Location Data
to Table
Field Mapping
:
Table Query Format
to coordinates
Location Name Field
to name
In "Query" tab:
Things
and pick a Thing from from the dropdown list.Historical Locations with Coordinates
Using grafana-cli:
sudo grafana-cli plugins install linksmart-sensorthings-datasource
If using Grafana Docker Image, set container environment variable instead:
GF_INSTALL_PLUGINS=linksmart-sensorthings-datasource
Restart Grafana server.
Clone the repository into Grafana's plugin directory:
git clone https://github.com/linksmart/grafana-sensorthings-datasource.git linksmart-sensorthings-datasource
If using Grafana Docker Image, set container environment variable instead:
GF_INSTALL_PLUGINS="https://github.com/linksmart/grafana-sensorthings-datasource/archive/master.zip;linksmart-sensorthings-datasource"
Restart Grafana server.
npm install
npm run watch