New SD Mechanism development : UnmarshalYAML method getting called twice

13 views
Skip to first unread message

Mayur R

unread,
Feb 13, 2022, 4:12:09 AM2/13/22
to Prometheus Developers
I am developing new SD mechanism in Prometheus for Oracle Cloud Infrastructure.
and during debugging I am observing that it 
 the "unmarshall" method 
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.

Reply all
Reply to author
Forward
0 new messages