Search code examples
influxdb

How can I insert query result value into a constant string?


For example, I queried the value of the number of hours some system has been running without downtime, and I want to return a string "the system has been running for ? hours", where ? is the value I just queried.


Solution

  • There is no way to do this request within InfluxDB itself. It will only return the results of the query. It cannot be configured to return anything additional.