I've already found two questions with the same problem as me:
In the first one the answer is about the mapping from a prometheus metric to an influxdb measurement, which doesn't help me much, and the second one is a completely outdated solution. So here is my problem:
I have a prometheus instance with remote read configured to an InfluxDB instance. If I run this query in InfluxDB:
SELECT "value" FROM "responseTime" WHERE ("ms" = 'ms-address') AND time >= 1604381750000ms and time <= 1604383558000ms
I get data:
Time responseTime
1604381751000 187
1604381811000 295
...
But if I run the following PromQL query:
responseTime{ms="ms-address"}
With time interval:
start=1604381745&end=1604383545&step=15
I get no data. But the request is arriving to influxdb and returns 200 OK.
"POST /api/v1/prom/read?db=ms_metrics&p=%5BREDACTED%5D&u=%5BREDACTED%5D HTTP/1.1" 200 4 "-" "Prometheus/2.22.0" 566cbba3-1de5-11eb-83e3-9e23496fb87c 152
In the prometheus remote read configuration I have the read_recent
parameter set to true
.
Any help would be really appreciated. Thank you very much!