Connectors & Add-Ins
Factry Historian Datasource pl...
Regex patterns in Grafana datasource
introduction with regex patterns, you can efficiently retrieve data across multiple measurements simultaneously, enhancing the flexibility and ease of data retrieval within grafana example regex patterns regex101 can be used for trying out regex patterns note in the factry historian datasource we need to wrap the regex pattern with / , such as /\<regex expression>/ moreover, if the expression does not contain ^ or $ , we need to put in the beginning and/or at the end of the pattern for the pattern to work / motor speed/ will return data points of measurements where the measurement name contains “ motor speed ” in its name /^motor speed/ will return data points of measurements where the measurement name begins with “ motor speed ” /motor speed$/ will return data points of measurements where the measurement name ends with “ motor speed ” /^first motor speed$/ will return data points of measurements where the measurement name starts with “ first ” and ends with “ motor speed ” is used for matching anything between the start and the end of the measurement name example captured measurement names can be first 01 a motor speed first 02 b motor speed first 03 c motor speed /^sensor \d+ temperature$/ will return data points of measurements where the measurement name starts with “ sensor ” followed by one or more numbers and ends with “ temperature ” example captured measurement names can be sensor 1 temperature sensor 25 temperature sensor 100 temperature / device \w+ status$/ will return data points of measurements where “ device ” is found, followed by word characters and ends with “ status ” example captured measurement names can be device sensora status device controller status device thermometer status