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

escape terraform interpolation ${} in rulegroup #97

Closed
cheskayang opened this issue Feb 24, 2024 · 1 comment
Closed

escape terraform interpolation ${} in rulegroup #97

cheskayang opened this issue Feb 24, 2024 · 1 comment

Comments

@cheskayang
Copy link

cheskayang commented Feb 24, 2024

Hi grafana team,

i ran into this error when creating the RuleGroup resource
Invalid reference: A reference to a resource type must be followed by at least one attribute access, specifying the resource name.

after some digging, turns out it was caused by having ${}

example, having this in the model expression

"$ErrorsLast24h > ${PercentOfMessagesLast24h}"

should be a similar issue to #59
and

#89

currently bypassing this using $$. we use the exported rules yaml files (so once get into grafana, it will become $), would be nice to have a fix

@cheskayang cheskayang changed the title escape terraform and interpolation ${} and {{$}} escape terraform interpolation ${} in rulegroup Feb 24, 2024
@julienduchesne
Copy link
Member

This should be fixed in v0.13.0!

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

2 participants