|
|
|
@ -68,6 +68,15 @@ func mustParseURL(u string) *config.URL {
|
|
|
|
|
return &config.URL{URL: parsed} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
globBodySizeLimit = 15 * units.MiB |
|
|
|
|
globSampleLimit = 1500 |
|
|
|
|
globTargetLimit = 30 |
|
|
|
|
globLabelLimit = 30 |
|
|
|
|
globLabelNameLengthLimit = 200 |
|
|
|
|
globLabelValueLengthLimit = 200 |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
var expectedConf = &Config{ |
|
|
|
|
GlobalConfig: GlobalConfig{ |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
@ -76,6 +85,13 @@ var expectedConf = &Config{
|
|
|
|
|
QueryLogFile: "", |
|
|
|
|
|
|
|
|
|
ExternalLabels: labels.FromStrings("foo", "bar", "monitor", "codelab"), |
|
|
|
|
|
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
RuleFiles: []string{ |
|
|
|
@ -169,6 +185,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -266,6 +288,10 @@ var expectedConf = &Config{
|
|
|
|
|
ScrapeTimeout: model.Duration(5 * time.Second), |
|
|
|
|
BodySizeLimit: 10 * units.MiB, |
|
|
|
|
SampleLimit: 1000, |
|
|
|
|
TargetLimit: 35, |
|
|
|
|
LabelLimit: 35, |
|
|
|
|
LabelNameLengthLimit: 210, |
|
|
|
|
LabelValueLengthLimit: 210, |
|
|
|
|
|
|
|
|
|
HTTPClientConfig: config.HTTPClientConfig{ |
|
|
|
|
BasicAuth: &config.BasicAuth{ |
|
|
|
@ -355,6 +381,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -402,6 +434,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: model.Duration(10 * time.Second), |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: "/metrics", |
|
|
|
|
Scheme: "http", |
|
|
|
@ -427,6 +465,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -458,6 +502,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -489,6 +539,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -509,6 +565,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -538,6 +600,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -564,6 +632,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -597,6 +671,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -620,6 +700,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -646,6 +732,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -665,6 +757,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -687,6 +785,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: false, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: "/federate", |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -709,6 +813,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -731,6 +841,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -750,6 +866,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -777,6 +899,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -803,6 +931,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -825,6 +959,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -847,6 +987,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -873,6 +1019,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -902,6 +1054,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -950,6 +1108,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -969,6 +1133,13 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
HTTPClientConfig: config.DefaultHTTPClientConfig, |
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -998,6 +1169,13 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
HTTPClientConfig: config.DefaultHTTPClientConfig, |
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -1033,6 +1211,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -1060,6 +1244,13 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
HTTPClientConfig: config.DefaultHTTPClientConfig, |
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -1080,6 +1271,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
@ -1104,6 +1301,12 @@ var expectedConf = &Config{
|
|
|
|
|
HonorTimestamps: true, |
|
|
|
|
ScrapeInterval: model.Duration(15 * time.Second), |
|
|
|
|
ScrapeTimeout: DefaultGlobalConfig.ScrapeTimeout, |
|
|
|
|
BodySizeLimit: globBodySizeLimit, |
|
|
|
|
SampleLimit: globSampleLimit, |
|
|
|
|
TargetLimit: globTargetLimit, |
|
|
|
|
LabelLimit: globLabelLimit, |
|
|
|
|
LabelNameLengthLimit: globLabelNameLengthLimit, |
|
|
|
|
LabelValueLengthLimit: globLabelValueLengthLimit, |
|
|
|
|
|
|
|
|
|
MetricsPath: DefaultScrapeConfig.MetricsPath, |
|
|
|
|
Scheme: DefaultScrapeConfig.Scheme, |
|
|
|
|