prometheus/config/testdata
Łukasz Mierzwa 870627fbed Add enable_compression scrape config option
Currently Prometheus will always request gzip compression from the target when sending scrape requests.
HTTP compression does reduce the amount of bytes sent over the wire and so is often desirable.
The downside of compression is that it requires extra resources - cpu & memory.

This also affects the resource usage on the target since it has to compress the response
before sending it to Prometheus.

This change adds a new option to the scrape job configuration block: enable_compression.
The default is true so it remains the same as current Prometheus behaviour.

Setting this option to false allows users to disable compression between Prometheus
and the scraped target, which will require more bandwidth but it lowers the resource
usage of both Prometheus and the target.

Fixes #12319.

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
2023-11-20 12:02:55 +00:00
..
scrape_configs Add include scrape configs 2023-03-06 23:35:39 +01:00
agent_mode.good.yml feat(config): allow no remote write configs 2022-12-13 18:41:06 +01:00
agent_mode.with_alert_manager.yml feat(config): allow no remote write configs 2022-12-13 18:41:06 +01:00
agent_mode.with_alert_relabels.yml feat(config): allow no remote write configs 2022-12-13 18:41:06 +01:00
agent_mode.with_remote_reads.yml feat(config): allow no remote write configs 2022-12-13 18:41:06 +01:00
agent_mode.with_rule_files.yml feat(config): allow no remote write configs 2022-12-13 18:41:06 +01:00
agent_mode.without_remote_writes.yml feat(config): allow no remote write configs 2022-12-13 18:41:06 +01:00
azure_authentication_method.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
azure_bearertoken_basicauth.bad.yml AZURE SD: Validate HTTP config 2023-09-08 13:10:31 +05:30
azure_client_id_missing.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
azure_client_secret_missing.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
azure_subscription_id_missing.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
azure_tenant_id_missing.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
bearertoken_basicauth.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
bearertoken.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
conf.good.yml Added ability to specify scrape protocols to accept during HTTP content type negotiation. (#12738) 2023-10-10 11:16:55 +01:00
dropequal1.bad.yml relabel: add keepequal/dropequal relabel action 2022-11-10 14:41:02 +01:00
dropequal.bad.yml relabel: add keepequal/dropequal relabel action 2022-11-10 14:41:02 +01:00
ec2_filters_empty_values.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
ec2_token_file.bad.yml EC2 SD: Validate HTTP config 2023-09-08 11:46:07 +05:30
empty_alert_relabel_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
empty_alertmanager_relabel_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
empty_metric_relabel_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
empty_rr_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
empty_rw_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
empty_rw_relabel_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
empty_scrape_config_action.bad.yml Check relabel action at yaml unmarshal stage (#9224) 2021-08-31 17:52:57 +02:00
empty_scrape_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
empty_static_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
empty_target_relabel_config.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
eureka_invalid_server.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
eureka_no_server.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
external_labels.good.yml Allow escaping a dollar sign when expanding external labels (#10129) 2022-01-17 16:43:55 +01:00
first.rules
global_timeout.good.yml
hetzner_role.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
http_token_file.bad.yml HTTP SD: Validate HTTP config 2023-09-03 23:06:30 +02:00
http_url_bad_scheme.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
http_url_no_host.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
http_url_no_scheme.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
ionos_datacenter.bad.yml Add service discovery for IONOS Cloud (#10514) 2022-05-20 14:57:23 +02:00
jobname_dup.bad.yml
jobname.bad.yml
keepequal1.bad.yml relabel: add keepequal/dropequal relabel action 2022-11-10 14:41:02 +01:00
keepequal.bad.yml relabel: add keepequal/dropequal relabel action 2022-11-10 14:41:02 +01:00
kubernetes_api_server_with_own_namespace.bad.yml k8s: improve 'own_namespace' 2022-02-01 14:59:09 +01:00
kubernetes_authorization_basicauth.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_bearertoken_basicauth.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_bearertoken.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_empty_apiserver.good.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_http_config_without_api_server.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_kubeconfig_with_apiserver.bad.yml add kubeconfig support in discovery module (#8811) 2021-06-17 12:41:50 +02:00
kubernetes_kubeconfig_with_http_config.bad.yml Fix yaml indent to make CI happy 2021-06-25 00:53:22 +02:00
kubernetes_kubeconfig_with_own_namespace.bad.yml k8s: improve 'own_namespace' 2022-02-01 14:59:09 +01:00
kubernetes_kubeconfig_without_apiserver.good.yml Fix yaml indent to make CI happy 2021-06-25 00:53:22 +02:00
kubernetes_namespace_discovery.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_role.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_duplicated_role.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_endpoints.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_endpoints.good.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_incorrect_selector.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_ingress.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_ingress.good.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_node.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_node.good.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_pod.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_pod.good.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_service.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
kubernetes_selectors_service.good.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
labeldrop2.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
labeldrop3.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
labeldrop4.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
labeldrop5.bad.yml
labeldrop.bad.yml
labelkeep2.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
labelkeep3.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
labelkeep4.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
labelkeep5.bad.yml
labelkeep.bad.yml
labelmap.bad.yml
labelname2.bad.yml
labelname.bad.yml
labelvalue.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
lightsail_token_file.bad.yml LIGHTSAIL SD: Validate HTTP config 2023-09-08 17:54:58 +05:30
lowercase2.bad.yml Add lowercase and uppercase relabel action (#10641) 2022-05-03 10:09:53 +02:00
lowercase3.bad.yml Add lowercase and uppercase relabel action (#10641) 2022-05-03 10:09:53 +02:00
lowercase.bad.yml Add lowercase and uppercase relabel action (#10641) 2022-05-03 10:09:53 +02:00
marathon_authtoken_authorization.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
marathon_authtoken_authtokenfile.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
marathon_authtoken_basicauth.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
marathon_authtoken_bearertoken.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
marathon_no_servers.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
modulus_missing.bad.yml
openstack_availability.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
openstack_role.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
ovhcloud_bad_service.bad.yml Add service discovery for OvhCloud (#10802) 2022-11-03 10:20:09 +01:00
ovhcloud_no_secret.bad.yml Add service discovery for OvhCloud (#10802) 2022-11-03 10:20:09 +01:00
puppetdb_bad_url.bad.yml Add PuppetDB service discovery 2021-09-16 16:54:26 +02:00
puppetdb_no_query.bad.yml Add PuppetDB service discovery 2021-09-16 16:54:26 +02:00
puppetdb_no_scheme.bad.yml Add PuppetDB service discovery 2021-09-16 16:54:26 +02:00
puppetdb_no_url.bad.yml Add PuppetDB service discovery 2021-09-16 16:54:26 +02:00
puppetdb_token_file.bad.yml PUPPETDB SD: Validate HTTP config 2023-09-08 17:42:01 +05:30
regex.bad.yml
remote_read_dup.bad.yml
remote_read_header.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
remote_read_url_missing.bad.yml
remote_write_authorization_header.bad.yml remote_write: allow passing along custom HTTP headers (#8416) 2021-02-04 14:18:13 -07:00
remote_write_dup.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
remote_write_header.bad.yml remote_write: allow passing along custom HTTP headers (#8416) 2021-02-04 14:18:13 -07:00
remote_write_retry_on_rate_limit.good.yml Adds support to configure retry on Rate-Limiting from remote-write config. 2021-02-16 14:52:49 +05:30
remote_write_url_missing.bad.yml
roundtrip.good.yml Add config tests for kuma SD 2021-07-21 12:55:02 -04:00
rules_abs_path_windows.good.yml
rules_abs_path.good.yml
rules.bad.yml
scaleway_no_secret.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
scaleway_role.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
scaleway_two_secrets.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
scrape_body_size_limit.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
scrape_config_disable_compression.good.yml Add enable_compression scrape config option 2023-11-20 12:02:55 +00:00
scrape_config_files2.good.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_combined.good.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_double_import.bad.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_duplicate.bad.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_glob.bad.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_glob.good.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_global_duplicate.bad.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_global.bad.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_only.good.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files_scrape_protocols2.bad.yml Added ability to specify scrape protocols to accept during HTTP content type negotiation. (#12738) 2023-10-10 11:16:55 +01:00
scrape_config_files_scrape_protocols.bad.yml Added ability to specify scrape protocols to accept during HTTP content type negotiation. (#12738) 2023-10-10 11:16:55 +01:00
scrape_config_files.bad.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_config_files.good.yml Add include scrape configs 2023-03-06 23:35:39 +01:00
scrape_interval_larger.good.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
scrape_interval.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
section_key_dup.bad.yml
static_config.bad.json
static_config.bad.yml
target_label_hashmod_missing.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
target_label_missing.bad.yml
tracing_invalid_authorization_header.bad.yml Followup on tracing (#10338) 2022-02-22 21:44:36 +01:00
tracing_invalid_compression.bad.yml Tracing: Add additional options to align with the upstream exporter (#10276) 2022-02-22 17:07:30 +01:00
tracing_invalid_header.bad.yml Tracing: Add additional options to align with the upstream exporter (#10276) 2022-02-22 17:07:30 +01:00
tracing_missing_endpoint.bad.yml Tracing: Add additional options to align with the upstream exporter (#10276) 2022-02-22 17:07:30 +01:00
unknown_attr.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
unknown_global_attr.bad.yml
uppercase2.bad.yml Add lowercase and uppercase relabel action (#10641) 2022-05-03 10:09:53 +02:00
uppercase3.bad.yml Add lowercase and uppercase relabel action (#10641) 2022-05-03 10:09:53 +02:00
uppercase.bad.yml Add lowercase and uppercase relabel action (#10641) 2022-05-03 10:09:53 +02:00
url_in_targetgroup.bad.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
uyuni_no_server.bad.yml Fix Uyuni SD initialization (#9924) 2021-12-04 21:14:47 +01:00
uyuni_token_file.bad.yml UYUNI SD: Validate HTTP config 2023-09-08 17:34:41 +05:30