SELECT mean(“usage_idle”) AS “mean_usage_idle” FROM “telegraf”.“autogen”.“cpu” WHERE time > now() - 1h AND (“host”=~/node/) AND “cpu”=‘cpu-total’ GROUP BY host
name: cpu
tags: host=node001
time mean_usage_idle
It is possible but you should be careful using regex if you have high cardinality in your database. IF you have a lot of tags and values then regex can impact the server significantly.