I tried a query on both a metric I can't render in the dashboard (node_cpu_seconds_total) , and the one seemingly random metric that does which is node_filesystem_avail_bytes.
Picking timestamps that create a small range from back in January 4, 2022 still brings up an empty set:
curl -G http://<vm-test-host>:8428/api/v1/query_range -d 'query=node_filesystem_avail_bytes{instance="<hostname>:9100"}' -d 'start=1641341963' -d 'end=1641356363' -d 'nocache=1'
{"status":"success","data":{"resultType":"matrix","result":[]}}
However, when I use the graph in Grafana I can have it render data points for node_filesystem_avail_bytes when I define the time range using (any number larger than 41, in this case I used 150 days) "From: now-150d" and "To: now" but when I use specific time/dates in those fields (e.g. 2022-01-04 00:00:00 to 2022-01-06 23:59:59) it will not render. The graph will say "no data."
When running the same query for node_cpu_seconds_total I get the expected results of no data all the time. Setting the time range using "From: now-150d" makes no difference in the case of this (and most other) metrics:
curl -G http://<vm-test-host>:8428/api/v1/query_range -d 'query=node_cpu_seconds_total{instance="<hostname>:9100"}' -d 'start=1641341963' -d 'end=1641356363' -d 'nocache=1'
{"status":"success","data":{"resultType":"matrix","result":[]}}
It appears that there is something not quite right with timestamps? I've tried cache clearing, but no change. Are there other things to be considering with backfilling and timestamps?