graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.88k stars 1.26k forks source link

[BUG]can not get window data in abs time with render_api #2769

Closed JiZhihan closed 2 years ago

JiZhihan commented 2 years ago

Describe the bug In the reference of the render_api document,i can not get window data in abs time with format '&from=14:00_20220721&until=15:00_20220721'

document:https://graphite.readthedocs.io/en/latest/render_api.html

To Reproduce send a get request: https://carbonapi4pek02.pek01.in.zhihu.com/render?format=json&from=14:00_20220721&until=15:00_20220721&target=aliasByNode(summarize(sumSeries(feedrein.span.feed-root-web._all.client.topstory_recommend_get.root-core._all.preparer.request_time.percentile.95), '1d', 'avg', false), 8)

the response is strconv.ParseInt: parsing "04:00_20110501": invalid syntax

Expected behavior

Screenshots

image
deniszh commented 2 years ago

URL "carbonapi..." suggesting that you're using go-carbon/carbonapi instead of graphite-web, probably you should ask in that repo. Although according to doc that should be compatible. Maybe try to quote it or urlescape it? 🤷

JiZhihan commented 2 years ago

URL "carbonapi..." suggesting that you're using go-carbon/carbonapi instead of graphite-web, probably you should ask in that repo. Although according to doc that should be compatible. Maybe try to quote it or urlescape it? 🤷

it just change the domain... i have used the timestamp to get what i need

http://carbonapi4pek02.pek01.in.zhihu.com/render?format=json&from=1658332800&until=1658396280&target=aliasByNode(summarize(sumSeries(feedrein .span.feed-root-web._all.client.topstory_recommend_get.root-core._all.preparer.request_time.percentile.95),%20'1d',%20'avg',%20false),%208)

why did not the official document mention this way..

deniszh commented 2 years ago

@JiZhihan : You probably do not understand my explanation. Your domain "carbonapi" suggest that you are not using graphite-web project. You're using go-carbon/carbonapi project, which is different project, implemented in go, which has own quirks and compatibility issues.

JiZhihan commented 2 years ago

@JiZhihan : You probably do not understand my explanation. Your domain "carbonapi" suggest that you are not using graphite-web project. You're using go-carbon/carbonapi project, which is different project, implemented in go, which has own quirks and compatibility issues.

i got you this time! thanks your explanation!