-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Add comma templating format #10632
Comments
I guess this issue is caused by all template variables are joined by "|". In by clause, we need to use "," character. |
@mtanda yeah, that's correct. If there was an option to use , instead of | (we need both), it would solve my issue. |
this will be possible once we add a new interpolation syntax that will allow you to specify formatting when you use the variable: example:
|
#11002 is merged. |
Now we just need to add a comma format so ${host:comma} not sure what name is best comma or csv |
Closed by #11141 |
* 'master' of github.com:grafana/grafana: (24 commits) docs: update latest to 5.0.1 push 5.0.1 to package cloud changelog: adds release date for 5.0.1 bump master build to 5.1.0-pre1 move quota to dedicated service rename Context to ReqContext changelog: note about closing #11145 and #11127 docs: adds note about closing #10632 removes commented code removes unused variables upgrade to go 1.10 alerting: fixes validation error when saving alerts in dash add csv templating format docs: note about closing #11046 docs: adds note about #10942 Documentation: path "~/go" to "$GOPATH" Update ROADMAP.md move Context and session out of middleware only use jwt token if it contains an email address hide row actions for viewers ...
Grafana supports multi-selectable template variables for prometheus: http://docs.grafana.org/img/docs/v4/templated_dash.png. They can be used in query like
up{server=~"$server"}
, howevercount(up{server="abc"}) by ($groupby_vars)
does not work. It is possible to hack around this, but it would be better if grafana supported this natively.The text was updated successfully, but these errors were encountered: