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
azure_client_id_missing.bad.yml
azure_client_secret_missing.bad.yml
azure_subscription_id_missing.bad.yml
azure_tenant_id_missing.bad.yml
bearertoken_basicauth.bad.yml
bearertoken.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
empty_alertmanager_relabel_config.bad.yml
empty_metric_relabel_config.bad.yml
empty_rr_config.bad.yml
empty_rw_config.bad.yml
empty_rw_relabel_config.bad.yml
empty_scrape_config.bad.yml
empty_static_config.bad.yml
empty_target_relabel_config.bad.yml
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_dup.bad.yml
jobname.bad.yml
kubernetes_bearertoken_basicauth.bad.yml
kubernetes_bearertoken.bad.yml
kubernetes_empty_apiserver.good.yml
kubernetes_http_config_without_api_server.bad.yml
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
labeldrop2.bad.yml
labeldrop3.bad.yml
labeldrop4.bad.yml
labeldrop5.bad.yml
labeldrop.bad.yml
labelkeep2.bad.yml
labelkeep3.bad.yml
labelkeep4.bad.yml
labelkeep5.bad.yml
labelkeep.bad.yml
labelmap.bad.yml
labelname2.bad.yml
labelname.bad.yml
labelvalue.bad.yml
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
remote_read_url_missing.bad.yml
remote_write_dup.bad.yml
remote_write_url_missing.bad.yml
roundtrip.good.yml Invert service discovery dependencies (#7701) 2020-08-20 13:48:26 +01:00
rules_abs_path_windows.good.yml
rules_abs_path.good.yml
rules.bad.yml
scrape_interval_larger.good.yml
scrape_interval.bad.yml
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