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
Describe the bug
When templating variables containing a dot (for example, domains), an error occurs when generating a request to the backend.
CarbonAPI Version
curent master
Logs {"level":"DEBUG","timestamp":"2023-05-24T14:59:39.269+0300","logger":"zipper","message":"have errors","type":"victoriametrics","protocol":"victoriametrics","name":"http://127.0.0.1:8489","type":"fetch","request":"&MultiFetchRequest{Metrics:[]FetchRequest{FetchRequest{Name:seriesByTag('domain=~(example1\\.com|example2\\.com)', 'name=test_metric'),StartTime:1684926590,StopTime:1684929190,HighPrecisionTimestamps:false,PathExpression:seriesByTag('domain=~(example1\\.com|example2\\.com)', 'name=test_metric'),FilterFunctions:[]*FilteringFunction{},MaxDataPoints:1008,},},}","error":"{\"status\":\"error\",\"errorType\":\"422\",\"error\":\"error when executing query=\\\"test_metric{domain=~\\\\\\\"(example1\\\\\\\\.com|example2\\\\\\\\.com)\\\\\\\"}\\\" on the time range (start=1684926590000, end=1684929190000, step=15000): cannot expand WITH expressions: cannot parse string literal \\\"\\\\\\\"(example1\\\\\\\\.com|example2\\\\\\\\.com)\\\\\\\"\\\": invalid syntax\"}","errorVerbose":"{\"status\":\"error\",\"errorType\":\"422\",\"error\":\"error when executing query=\\\"test_metric{domain=~\\\\\\\"(example1\\\\\\\\.com|example2\\\\\\\\.com)\\\\\\\"}\\\" on the time range (start=1684926590000, end=1684929190000, step=15000): cannot expand WITH expressions: cannot parse string literal \\\"\\\\\\\"(example1\\\\\\\\.com|example2\\\\\\\\.com)\\\\\\\"\\\": invalid syntax\"}\nHTTP Code: 422\n\ngithub.com/go-graphite/carbonapi/zipper/types.init\n\t/go/src/github.com/go-graphite/carbonapi/zipper/types/errors.go:27\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:6329\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:6306\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:6306\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:6306\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:233\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"}
Describe the bug
When templating variables containing a dot (for example, domains), an error occurs when generating a request to the backend.
CarbonAPI Version
curent master
Logs
{"level":"DEBUG","timestamp":"2023-05-24T14:59:39.269+0300","logger":"zipper","message":"have errors","type":"victoriametrics","protocol":"victoriametrics","name":"http://127.0.0.1:8489","type":"fetch","request":"&MultiFetchRequest{Metrics:[]FetchRequest{FetchRequest{Name:seriesByTag('domain=~(example1\\.com|example2\\.com)', 'name=test_metric'),StartTime:1684926590,StopTime:1684929190,HighPrecisionTimestamps:false,PathExpression:seriesByTag('domain=~(example1\\.com|example2\\.com)', 'name=test_metric'),FilterFunctions:[]*FilteringFunction{},MaxDataPoints:1008,},},}","error":"{\"status\":\"error\",\"errorType\":\"422\",\"error\":\"error when executing query=\\\"test_metric{domain=~\\\\\\\"(example1\\\\\\\\.com|example2\\\\\\\\.com)\\\\\\\"}\\\" on the time range (start=1684926590000, end=1684929190000, step=15000): cannot expand WITH expressions: cannot parse string literal \\\"\\\\\\\"(example1\\\\\\\\.com|example2\\\\\\\\.com)\\\\\\\"\\\": invalid syntax\"}","errorVerbose":"{\"status\":\"error\",\"errorType\":\"422\",\"error\":\"error when executing query=\\\"test_metric{domain=~\\\\\\\"(example1\\\\\\\\.com|example2\\\\\\\\.com)\\\\\\\"}\\\" on the time range (start=1684926590000, end=1684929190000, step=15000): cannot expand WITH expressions: cannot parse string literal \\\"\\\\\\\"(example1\\\\\\\\.com|example2\\\\\\\\.com)\\\\\\\"\\\": invalid syntax\"}\nHTTP Code: 422\n\ngithub.com/go-graphite/carbonapi/zipper/types.init\n\t/go/src/github.com/go-graphite/carbonapi/zipper/types/errors.go:27\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:6329\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:6306\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:6306\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:6306\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:233\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"}
CarbonAPI Configuration:
Simplified query (if applicable)
metrics
curl --data-binary "@test_metric.json" -X POST http://localhost:8571/insert/0/prometheus/api/v1/import
**Grafana dashboard
The text was updated successfully, but these errors were encountered: