Hi @ianhud,
If {_start="YYYY-MM-DD"}
is part of the column name then try using grafana transformation Rename by regex
with:
Match: (.*)\s{.*
Replace: $1
This regex should extract anything that’s before bracket {.
So from:
_value {_start="2023-02-18 16:12"}
Device {_start="2023-02-18 16:12"}
Type {_start="2023-02-18 16:12"}
_field {_start="2023-02-18 16:12"}
_measurement {_start="2023-02-18 16:12"}
You would get:
_value
Device
Type
_field
_measurement
You can try this on www.regex101.com with flavor Golang
. Here is a direct link with filled data and regex:
You can also take a look at this post for more information:
Best regards,
ldrascic