-
Notifications
You must be signed in to change notification settings - Fork 146
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
[BUG] Grafana can't show metrics which directory names include curly brackets { } if maxBatchSize not 0 #752
Comments
Tried with different combinations: filename:
|
Maybe it is because |
Hi @Knud3, As far as I remember, curly braces are part of Graphite globs, so they were never allowed characters in metrics, not in go-graphite, neither in python implementation. I'm not sure it it's theoretically possible even - how you distinguish glob from real bracket in filename? |
Actually in graphite-web there is a functionality of escaping special characters (and it allows any kind of characters, excluding dots in the name as far as I remember) which is semi-working in carbonapi, but can be in non-working state in go-carbon and graphite-clickhouse (I've never checked to be honest) |
More I've looked into it, more it's started to look like you said. Not sure why, but it is working in render when filename: I'm no Grafana user myself, but trying to provide platform to our devs. So, I was no familiar with globs before this. That use case comes from our dev.
What I know now, I try to shift them to use something else than curly brackets, because I'd like to set Thank you for pointing it out! If you do not see easy workaround, I'm ok to close this issue. |
Difference is that with maxBatchSize=0 - carbonapi sends request as-is to backend ("give me metrics"). Basically that means that backend have a fallback path for /render request that tries to fetch data anyhow, but with /metrics/find it tries to expand it and if that fails - returns nothing. |
If not 0, carbonapi will do find request to determine how many metrics matches criteria and only then will fetch them, not more than maxBatchSize per request.
Not sure if it is find request or does
maxBatchSize
do something else for render request.Maybe related to #29 and/or #746 and/or #661.
Have tried with
Tried with escaping curly brackets in directory names
Bad Request: Bad Request Target : foo.bar\{topic\}.* Parsed so far : foo.bar\{topic\ Could not parse : }.*
HTTP clients and servers that use path parameters often represent these path parameters as
{variable}
, e.g./reports/{date}
. It would be great to be able to use this same format in the graphs to refer to these URL endpoints.Settings in use with newest
v0.16.0-patch2
and go-carbonv0.16.2
:The text was updated successfully, but these errors were encountered: