From 439c2ed510213d53384c92700d9682222cd04cc5 Mon Sep 17 00:00:00 2001 From: Hason Chan Date: Fri, 4 Jun 2021 16:47:17 +0800 Subject: [PATCH] fix eureka_sd_configs HTTPClientConfig incorrect parsing (#1350) --- lib/promscrape/discovery/eureka/eureka.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/promscrape/discovery/eureka/eureka.go b/lib/promscrape/discovery/eureka/eureka.go index 54b7c03f2..1edb980cc 100644 --- a/lib/promscrape/discovery/eureka/eureka.go +++ b/lib/promscrape/discovery/eureka/eureka.go @@ -17,7 +17,7 @@ const appsAPIPath = "/apps" // See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#eureka type SDConfig struct { Server string `yaml:"server,omitempty"` - HTTPClientConfig promauth.HTTPClientConfig `ymal:",inline"` + HTTPClientConfig promauth.HTTPClientConfig `yaml:",inline"` ProxyURL proxy.URL `yaml:"proxy_url,omitempty"` ProxyClientConfig promauth.ProxyClientConfig `yaml:",inline"` // RefreshInterval time.Duration `yaml:"refresh_interval"`