This type of metric allows data to be retrieved from an external data source.
With this metric, data is retrieved only on demand, for example when a widget asks for the metric values of a specific period.
Creating a Volatile metric
To add a new Volatile Metric to a Thing Definition, you should:
Ensure to have activated and configure a plugin providing external data source access.
The plugins supporting volatile metrics are: InfluxDB, Snowflake.Enter the RAW Data page.
Select the Thing Definitions tab.
Select the Thing Definition to edit.
Press the Add Metric button.
Select the Volatile Metric type and provide the required information.
Press the Save button and edit the additional information, if needed.
Editing a Volatile metric
Once created, a volatile metric requires configuring the query to retrieve data from the remote data source.
The way the metric is configured depends on the selected data source; for more details, refer to one of the following plugins:
Displaying Volatile metric data
Once configured, within dashboards, you can insert any type of widget that supports metrics.
From a UI point of view, volatile metrics are the same as other metrics.
Limitations
Volatile metrics cannot be used within periodic computations such as (Events, Automations, Computed Metrics and Insights).
Volatile metrics cannot be used within a property bound to a metric.