-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[m3query] suspicious timestamp causing prometheus remote read query fail #2471
Comments
Trying to repro this locally but no luck. Which m3 version are you using and how exactly are you calling the query? |
@arnikola HI, thanks for your reply, my m3 versions is v0.15.0
and the prometheus config is
you might need to delete the Prometheus local data cache, cause Prometheus will merge the local results with remote. |
BTW, Prometheus version is: 2.12.2 |
That's an old m3 version; you should update it. BTW if you change read_recent to false you won't get results from the prometheus cache |
updated to v0.15.5, Get the same symptom still. |
Just verifying that this is resolved by that PR? I haven't been able to repro it locally as of yet; was going to ask if you have remote_write set up correctly in the prom settings |
Hi, This is my remote_write config:
I think the data should exist in m3db, I can get metrics data by Prometheus |
And yes, that PR could resolve, But I'm not sure that's a good idea.:flushed: |
FYI, there are my m3 configs, I'm not experienced with m3db, most of these were copied from m3 doc 😳 , As you suspected, that I might misconfigure something.:
|
Sorry it autoclosed, leaving this open until verified solved |
Thanks for your great work! I'll verify it as soon. |
verified, closing. |
When I sent
http://192.168.0.107:9090/api/v1/series?match[]={__name__=~%22hpa_container_.*%22,%20container_label_io_kubernetes_pod_namespace!=%22%22,%20container_label_io_kubernetes_pod_name!=%22%22}
to prometheus which configured m3db as remote read storage. It returnedBut If I add
start
andend
args in URL, It will return data,http://192.168.0.107:9090/api/v1/series?match[]={__name__=~%22hpa_container_.*%22,%20container_label_io_kubernetes_pod_namespace!=%22%22,%20container_label_io_kubernetes_pod_name!=%22%22}&start=1595227791.278&end=1595228091.278
I read the code of the Prometheus, It set the
start
asminTime
andend
asmaxTime
when these two parameters not defined in URL.https://github.com/prometheus/prometheus/blob/master/web/api/v1/api.go#L549-L555
Meanwhile, the m3query log shows
the
start
andend
shows in the log is very suspicious, looks like overflow, or convert failed.The text was updated successfully, but these errors were encountered: