Skip to content
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

每当需要用到falcon查询接口时,grafana一直返回301导致浏览器访问错误的url #14

Open
Mstch opened this issue Feb 19, 2020 · 0 comments

Comments

@Mstch
Copy link

Mstch commented Feb 19, 2020

尝试将falcon上的数据在grafana中展示,但每当需要用到falcon查询接口时,grafana一直返回301导致浏览器访问错误的url

例如:添加datasource校验查询可用时,浏览器会发送如下请求

req
而grafana响应 301 + 一个只存在于falcon的location "api/v1/grafana/metrics/find?query="

res

导致浏览器会发送get请求到 localhost:3000/api/v1/grafana/metrics/find?query=

当然,grafana中无此路由,始终导致404

经查询后仍无果。 但经测试,当向grafana发送的query请求去掉最后一个/时, 即发送/api/datasources/proxy/3/metrics/find?query= 到grafana, grafana可以正常的转发给falcon并响应,推测可能是grafana插件的原因
grafana版本:

5.4.2 5.4.3 5.5.1 6.6.1 结果全部一样

Falcon-plus版本:

v0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant