What is the equivalent of this InfluxDB query in VictoriaMetrics?
SELECT * FROM ${measurement}
WHERE ...
LIMIT 1
VictoriaMetrics doesn't have a LIMIT modifier, so a query like
${metric}{...labels...}[20y]
will return ALL points. (Also, 20y is dicey, but an arbitrarily large duration won't work.)
I only need the timestamp of that point.
One answer is
tfirst_over_time:So,
You still have to supply an arbitrarily large duration, but surprisingly,
100ydoesn't seem to bugtfirst_over_time.