Closed colixxx closed 4 years ago
This looks like a duplicate for #504
It would be great if you can have a look through that bug and verify that you have the same issue as described there.
@Civil this is a similar problem. But I have table with start
When I curl
curl "http://victoriametrics-victoria-metrics-single-server:8428/api/v1/query_range?query=%7B__name__%3D~%22stats%5C%5C.timers%5C%5C.python-mcs-test%5C%5C.container%5C%5C.external%5C%5C.redis%5C%5C.get%5C%5C.success%5C%5C.count%22%7D&start=1596790865&step=60s&end=1596798120"
first value have timestamp is 1596790860
But when I curl
curl "http://victoriametrics-victoria-metrics-single-server:8428/api/v1/query_range?query=%7B__name__%3D~%22stats%5C%5C.timers%5C%5C.python-mcs-test%5C%5C.container%5C%5C.external%5C%5C.redis%5C%5C.get%5C%5C.success%5C%5C.count%22%7D&start=1596790860&step=60s&end=1596798120"
first value have timestamp is 1596790860
maybe grafana can't render such an answer. when the time range in response exceeds the time range in request...
I also noticed that stop returns all points to the end, and end takes into account the end of the time interval
@radinv The issue is that VictoriaMetrics aligns the start/stop timestamps with the step parameter when more than 50 values are being requested. It does that to allow caching. This causes carbonapi to set all values to NaN. This could be fixed by aligning the timestamps in carbonapi the same way VictoriaMetrics does it.
To workaround you can disable the cache in VictoriaMetrics using this flag: --search.disableCache
.
CarbonAPI already does some caching I think.
@alexandv I try use flag --search.disableCache. But it not work... I not understand, how I can aligning the timestamps in carbonapi the same way VictoriaMetrics does it?
Try updating to the latest version of VictoriaMetrics.
I tried it with 1.39.3 and it worked for me with -search.disableCache
flag.
Could you please verify if that's fixed in current master? (Fix is in the commit linked here)
Describe the bug Hi, I have carbonapi and victoriametrics. I try get metrics in grafana. I create datasource on carbonapi. Metrics locate on victoriametrics. Whet I try get metrics in Explore Grafana I have success render only whet time range is "Last 5 minutes" or when time in time range have :00 in seconds by start.
But when time range have :13 seconds, for example, I not see graphic.
In log I can't see trouble
Logs
CarbonAPI Configuration: carbonapi.yaml