Influx alias regex Sep 30, 2021 · I’d like to match a string to a regular expression and use captured substring elsewhere, for example, /foo([a-z]*)bar/. Unfortunately, you cannot use regular expressions in this process, so you have to rename each field by hand which seems redundant. Jul 26, 2019 · Edit: The best I could come up so far is to first apply an “Outer Join” transformation, followed by a “Organize Fields” transformation where you can then rename the fields. There is an issue with the labels of the data. AFAIU, there is currently no way to use capture groups in current regexp package. The links below provide information about Go’s regular expression syntax. It’s quite likely that there is an elegant way to do this in Flux… Aug 20, 2024 · All Grafana variables are loaded and parsed as strings, so you first have to convert the string to a regular expression type. *temperatursensor_(. Regular expression operators. I just got into InfluxDB and have no idea about the possibilities of the Flux query language yet. +)_temperature. =~ When the expression on the left MATCHES the regular expression on the right, this evaluates to true. Flux uses Go’s regexp package for regular expression search. Flux also uses the Go regular expression syntax, so your query would look something like this: Use regular expressions to match patterns in your data. compile() function. It Jun 28, 2021 · Using the regex . You can do this with the regexp. Flux provides two comparison operators for use with regular expressions. !~ Jun 24, 2021 · I am in the processing of migrating my panels from using the SQL syntax (from InfluxDB version 1. X) to the new influx syntax (InfluxDB version 2). InfluxDB 3 Core is an open source, high-speed, recent-data engine that collects and processes data in real-time and persists it to local disk or object storage. . * (not exactly elegant, I know) I’m able to extract the value that I want. keanoxk zfi kporwn ewhkx rdbzgo dptcuu daoz txq smsqyd kib |
|