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
I m using extraconfig in alloy-singleton for scraping rule
but i don't know how to use dynamic variable in extraconfig
this is my values.yaml
when i render values.yaml , "{{ $.Values.cluster.name }}" can not render to dynamic values
if you have a solution let me know ( when i use v1 , I had no problem )
In v1, extraConfig could contain Helm template directives, but in v2 it does not. It really got in the way of extraConfig for Loki rules, which also can contain {{ ... }} strings.
The way I'd do it would be to set those values as environment variables on the Alloy instance, then use sys.env to access them. Or, throw the in a ConfigMap, add a remote.kubernetes.configmap component, and access them with that.
k8s-monitoring chart version : 2.0.4
I m using extraconfig in alloy-singleton for scraping rule
but i don't know how to use dynamic variable in extraconfig
this is my values.yaml
when i render values.yaml ,
"{{ $.Values.cluster.name }}"
can not render to dynamic valuesif you have a solution let me know ( when i use v1 , I had no problem )
The text was updated successfully, but these errors were encountered: