refactor: reorder fields in defaultSDConfig initialization for consistency

Signed-off-by: 3Juhwan <13selfesteem91@naver.com>
pull/15230/head
3Juhwan 2024-10-27 17:43:33 +09:00 committed by Ayoub Mrini
parent eb3b349024
commit 685d6d169f
1 changed files with 1 additions and 1 deletions

View File

@ -41,8 +41,8 @@ import (
var ( var (
// DefaultSDConfig is the default HTTP SD configuration. // DefaultSDConfig is the default HTTP SD configuration.
DefaultSDConfig = SDConfig{ DefaultSDConfig = SDConfig{
RefreshInterval: model.Duration(60 * time.Second),
HTTPClientConfig: config.DefaultHTTPClientConfig, HTTPClientConfig: config.DefaultHTTPClientConfig,
RefreshInterval: model.Duration(60 * time.Second),
} }
userAgent = fmt.Sprintf("Prometheus/%s", version.Version) userAgent = fmt.Sprintf("Prometheus/%s", version.Version)
matchContentType = regexp.MustCompile(`^(?i:application\/json(;\s*charset=("utf-8"|utf-8))?)$`) matchContentType = regexp.MustCompile(`^(?i:application\/json(;\s*charset=("utf-8"|utf-8))?)$`)