diff --git a/scrape.go b/scrape.go index 3d23367..804f386 100644 --- a/scrape.go +++ b/scrape.go @@ -24,6 +24,8 @@ import "net/url" type ScrapeConfig struct { // The job name to which the job label is set by default. JobName string `yaml:"job_name"` + // Indicator to disable response compression on a per-job basis. + DisableCompression bool `yaml:"disable_compression,omitempty"` // Indicator whether the scraped metrics should remain unmodified. HonorLabels bool `yaml:"honor_labels,omitempty"` // Indicator whether the scraped timestamps should be respected. diff --git a/testdata/test1.json b/testdata/test1.json index fadc71f..e9c2238 100644 --- a/testdata/test1.json +++ b/testdata/test1.json @@ -14,6 +14,7 @@ "ScrapeConfigs": [ { "JobName": "blackbox", + "DisableCompression": false, "HonorLabels": false, "HonorTimestamps": false, "Params": {