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 having a hard time understanding levant templating for my nomad job. Let's say I have a variable .shortJobNames (can be true of false). I want to construct my prometheus config out of local file template and replace blackbox exporter service name placeholder with the actual one for prometheus to use consul service mesh (can be "blackbox" if .shortJobNames or [[ .jobName ]]-blackbox-[[ .instanceName ]] if not)
Description
I'm having a hard time understanding levant templating for my nomad job. Let's say I have a variable .shortJobNames (can be true of false). I want to construct my prometheus config out of local file template and replace blackbox exporter service name placeholder with the actual one for prometheus to use consul service mesh (can be "blackbox" if .shortJobNames or [[ .jobName ]]-blackbox-[[ .instanceName ]] if not)
So this:
Turns into this:
Also tried with variable, but could not find in docs how to construct such a string:
UPD: I do not want to hardcode name in config and\or job itself to utilize DRY. I have multiple environments which are independantly deployed
Output of
levant version
:The text was updated successfully, but these errors were encountered: