Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions testdata/test1.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"ScrapeConfigs": [
{
"JobName": "blackbox",
"DisableCompression": false,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add also disabled compression to some target in test1.yml file.

"HonorLabels": false,
"HonorTimestamps": false,
"Params": {
Expand Down