mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Fix(discovery/aws): Added SetDirectory method to EC2SDConfig.
Signed-off-by: Akshat Sinha <akshatsinhasramhardy@gmail.com>
This commit is contained in:
parent
6f18cc3074
commit
5246732e06
1 changed files with 5 additions and 0 deletions
|
|
@ -116,6 +116,11 @@ func (c *EC2SDConfig) NewDiscoverer(opts discovery.DiscovererOptions) (discovery
|
|||
return NewEC2Discovery(c, opts)
|
||||
}
|
||||
|
||||
// SetDirectory joins any relative file paths with dir.
|
||||
func (c *EC2SDConfig) SetDirectory(dir string) {
|
||||
c.HTTPClientConfig.SetDirectory(dir)
|
||||
}
|
||||
|
||||
// UnmarshalYAML implements the yaml.Unmarshaler interface for the EC2 Config.
|
||||
func (c *EC2SDConfig) UnmarshalYAML(unmarshal func(any) error) error {
|
||||
*c = DefaultEC2SDConfig
|
||||
|
|
|
|||
Loading…
Reference in a new issue