refactor: reorder fields in defaultSDConfig initialization for consistency

Signed-off-by: 3Juhwan <13selfesteem91@naver.com>
This commit is contained in:
3Juhwan 2024-10-27 17:43:33 +09:00 committed by Ayoub Mrini
parent eb3b349024
commit 685d6d169f

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))?)$`)