You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When telemetry data is sent to VictoriaMetrics via influx line protocol by pipeline telemetry collectormeasurement,tag and field names contain characters not allowed by regexps in Prometheus Data Model.
VictoriaMetrics accepts and stores such input data but its further usage in queries is difficult or not possible due to PromQL restrictions. For example for sample data below:
node-name label name is not allowed in selection expressions like node-name=~"abc.+" and there is no way to quote label name or escape "bad" characters in it.
Metric name in VictoriaMetrics is created as measurement.field can also be addressed only indirectly with __name__="...." syntax.
Options to deal with this problem:
patch pipeline source code for influx output (possible, but won't cure same problem with other bad-behaving data sources)
PromQL in VM has to be extended to provide a better way to handle "exotic" names (quote, escape, etc) or
Validate input data & Reject or Rewrite names to valid PromQL strings (will protect VM from bad data getting into database)
Leave VM as is - let users preprocess data before sending to VM (using telegraf [[processors]] or smth else).
The text was updated successfully, but these errors were encountered:
Now VictoriaMetrics accepts escaped identifiers starting from v1.18.9. Escape rules for identifiers - metric names, labels, function names and function args:
Arbitrary char may be escaped with \ before it. For instance, a\-b\+c is treated as a-b+c identifier.
\xXX is converted to a single char with the corresponding hex code XX. For instance, a\x20b is treated as a b identifier.
When telemetry data is sent to VictoriaMetrics via influx line protocol by pipeline telemetry collector
measurement
,tag
andfield
names contain characters not allowed by regexps in Prometheus Data Model.VictoriaMetrics accepts and stores such input data but its further usage in queries is difficult or not possible due to PromQL restrictions. For example for sample data below:
node-name
label name is not allowed in selection expressions likenode-name=~"abc.+"
and there is no way to quote label name or escape "bad" characters in it.Metric name in VictoriaMetrics is created as
measurement
.field
can also be addressed only indirectly with__name__="...."
syntax.Options to deal with this problem:
The text was updated successfully, but these errors were encountered: