You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.
Show template variables
Add template variable xxx to be packets_received
Add Frame with URL http://graphite/render/?target=stats_counts.statsd.packets_received
Verify graph shows something
Click on Frame Source
In target field, replace packets_received with template variable {{xxx}}
Actual:
Graph no longer shows No Data
Frame Source is now:
It's necessary to escape the parameters before constructing a URL. For a simple target with only a metric name this might work, for targets including functions with parentheses, spaces, equal signs or even ampersands, not escaping will break the URL.
It might be possible to postpone the escaping until after template variables have been evaluated and the request gets sent to graphite, but that depends on how the graphite URL gets stored internally. With the new graphite data source editor, it has to be ensured that repeated decomposing/composing of the parameters does not mutate the URL.
It seems to me that this issue is not so much about escaping but handling of template variables in graphite URLs.
Reproduction:
Show template variables
Add template variable
xxx
to bepackets_received
Add Frame with URL
http://graphite/render/?target=stats_counts.statsd.packets_received
Verify graph shows something
Click on Frame Source
In
target
field, replacepackets_received
with template variable{{xxx}}
Actual:
Graph no longer shows
No Data
Frame Source is now:
Expected:
To show the same graph without the template variable
Frame Source to not escape the template braces:
The text was updated successfully, but these errors were encountered: