func (c *SDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {...}
is getting called twice.
Is it expected?
As far as I understood the Prometheus framework, it should get called only once at the start.
I am new to golang, doubting if there is some problem with my setup.