prometheus/config/testdata
Alexey Shumkin 73ddf603af
discovery/kubernetes: Fix valid label selector causing config error
Label selector can be
"set-based"(https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#set-based-requirement)
but such a selector causes Prometheus start failure with the "unexpected
error: parsing YAML file ...: invalid selector: 'foo in (bar,baz)';
can't understand 'baz)'"-like error.

This is caused by the `fields.ParseSelector(string)` function that
simply splits an expression as a CSV-list, so a comma confuses such a
parsing method and lead to the error.

Use `labels.Parse(string)` to use a valid lexer to parse a selector
expression.

Closes #8284.

Signed-off-by: Alexey Shumkin <Alex.Crezoff@gmail.com>
2020-12-16 10:56:01 +03:00
..
azure_authentication_method.bad.yml discovery: add support for Managed Identity authentication in Azure SD (#4590) 2018-12-19 10:03:33 +00:00
azure_client_id_missing.bad.yml discovery/azure: Fail hard when Azure authentication parameters are missing (#4907) 2018-11-29 16:47:59 +01:00
azure_client_secret_missing.bad.yml discovery/azure: Fail hard when Azure authentication parameters are missing (#4907) 2018-11-29 16:47:59 +01:00
azure_subscription_id_missing.bad.yml discovery/azure: Fail hard when Azure authentication parameters are missing (#4907) 2018-11-29 16:47:59 +01:00
azure_tenant_id_missing.bad.yml discovery/azure: Fail hard when Azure authentication parameters are missing (#4907) 2018-11-29 16:47:59 +01:00
bearertoken.bad.yml
bearertoken_basicauth.bad.yml
conf.good.yml Add Eureka Service Discovery (#3369) 2020-08-26 17:36:59 +02:00
ec2_filters_empty_values.bad.yml
empty_alert_relabel_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
empty_alertmanager_relabel_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
empty_metric_relabel_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
empty_rr_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
empty_rw_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
empty_rw_relabel_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
empty_scrape_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
empty_static_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
empty_target_relabel_config.bad.yml Fix config loading panics on nil pointer slice elements (#4942) 2018-12-03 18:09:02 +08:00
eureka_invalid_server.bad.yml Add Eureka Service Discovery (#3369) 2020-08-26 17:36:59 +02:00
eureka_no_server.bad.yml Add Eureka Service Discovery (#3369) 2020-08-26 17:36:59 +02:00
first.rules
global_timeout.good.yml
hetzner_role.bad.yml Add hetzner service discovery (#7822) 2020-08-21 15:49:19 +02:00
jobname.bad.yml
jobname_dup.bad.yml
kubernetes_bearertoken.bad.yml
kubernetes_bearertoken_basicauth.bad.yml
kubernetes_empty_apiserver.good.yml config: fix Kubernetes config with empty API server (#5256) 2019-02-22 15:51:47 +01:00
kubernetes_http_config_without_api_server.bad.yml config: fix Kubernetes config with empty API server (#5256) 2019-02-22 15:51:47 +01:00
kubernetes_namespace_discovery.bad.yml
kubernetes_role.bad.yml
kubernetes_selectors_duplicated_role.bad.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_endpoints.bad.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_endpoints.good.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_incorrect_selector.bad.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_ingress.bad.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_ingress.good.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_node.bad.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_node.good.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_pod.bad.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_pod.good.yml discovery/kubernetes: Fix valid label selector causing config error 2020-12-16 10:56:01 +03:00
kubernetes_selectors_service.bad.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
kubernetes_selectors_service.good.yml discovery/kubernetes: expose label_selector and field_selector 2020-02-15 14:57:56 +01:00
labeldrop.bad.yml
labeldrop2.bad.yml
labeldrop3.bad.yml
labeldrop4.bad.yml
labeldrop5.bad.yml
labelkeep.bad.yml
labelkeep2.bad.yml
labelkeep3.bad.yml
labelkeep4.bad.yml
labelkeep5.bad.yml
labelmap.bad.yml
labelname.bad.yml
labelname2.bad.yml
labelvalue.bad.yml Check if label value is valid when unmarhsaling external labels from 2019-03-18 20:31:12 +00:00
marathon_authtoken_authtokenfile.bad.yml
marathon_authtoken_basicauth.bad.yml
marathon_authtoken_bearertoken.bad.yml
marathon_no_servers.bad.yml
modulus_missing.bad.yml
openstack_availability.bad.yml OpenStack SD: Add availability config option, to choose endpoint type (#7494) 2020-07-02 15:17:56 +01:00
openstack_role.bad.yml
regex.bad.yml
remote_read_dup.bad.yml Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
remote_read_url_missing.bad.yml
remote_write_dup.bad.yml Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
remote_write_url_missing.bad.yml
roundtrip.good.yml Invert service discovery dependencies (#7701) 2020-08-20 13:48:26 +01:00
rules.bad.yml
rules_abs_path.good.yml
rules_abs_path_windows.good.yml
scrape_interval.bad.yml
scrape_interval_larger.good.yml config: add test case for scrape interval larger than timeout. (#6037) 2019-09-23 13:26:56 +02:00
section_key_dup.bad.yml
static_config.bad.json
static_config.bad.yml
target_label_hashmod_missing.bad.yml
target_label_missing.bad.yml
unknown_attr.bad.yml
unknown_global_attr.bad.yml
url_in_targetgroup.bad.yml