Replies: 1 comment 4 replies
-
- source_labels: [community]
target_label: __param_auth |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
j4mbob
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've been following the recent discussion about the addition of split auth. I have json file with all my switches defined in it with a label which contains the auth profile to use:
in my prom yaml file Im loading this via:
file_sd_configs:
- files:
- 'switches.json'
I want to set __param,_auth to use the community label embedded in switches.json via relabeling - i tried :
and various variations but I just get an unmarshalling error: : cannot unmarshal !!str
community
into model.LabelNameswhich presumably means it cant find the label.
This should be possible now right?
as a side note its a shame you cant directly pass the community string. it would be much less of a pain (I have 1000s of devices I want to monitor all of the same type and all with a unique community string, but i understand the reason for not allowing it!)
thanks for any assistance
Beta Was this translation helpful? Give feedback.
All reactions