prometheus/cmd/promtool/testdata
zzehring 42628899b5 promtool: Add --syntax-only flag for check config
This commit adds a `--syntax-only` flag for `promtool check config`.
When passing in this flag, promtool will omit various file existence
checks that would cause the check to fail (e.g. the check would not
fail if `rule_files` files don't exist at their respective paths).

This functionality will allow CI systems to check the syntax of
configs without worrying about referenced files.

Fixes: #5222
Signed-off-by: zzehring <zack.zehring@grafana.com>
2021-12-02 15:33:11 -05:00
..
at-modifier-test.yml Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
at-modifier.yml Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
authorization_credentials_file.bad.yml promtool: Fix credentials file check (#9883) 2021-11-30 15:02:07 +11:00
authorization_credentials_file.good.yml promtool: Fix credentials file check (#9883) 2021-11-30 15:02:07 +11:00
bad-input-series.yml promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
bad-promql.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
bad-rules-error-test.yml Fix misspelled word in comment (#8348) 2021-01-07 10:01:08 +00:00
bad-rules-error.yml promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
bad-rules-syntax-test.yml promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
bad-rules-syntax.yml promtool: Calculate mint and maxt per test (#8096) 2020-10-24 12:03:55 +01:00
bad-sd-file-extension.nonexistant Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
bad-sd-file-format.yml Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
config_with_rule_files.yml promtool: Add --syntax-only flag for check config 2021-12-02 15:33:11 -05:00
config_with_service_discovery_files.yml promtool: Add --syntax-only flag for check config 2021-12-02 15:33:11 -05:00
config_with_tls_files.yml promtool: Add --syntax-only flag for check config 2021-12-02 15:33:11 -05:00
failing.yml promtool: Add more negative alert tests 2021-02-15 17:00:49 +00:00
good-sd-file.json Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
good-sd-file.yaml Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
good-sd-file.yml Promtool: Validate service discovery files (#8950) 2021-06-29 17:32:59 +02:00
negative-offset-test.yml Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
negative-offset.yml Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
rules.yml Fix subqueries with default resolution in promql unit tests 2021-03-07 09:20:04 +01:00
rules_duplicates.yml promtool: Add testcase for detecting duplicates 2021-09-06 23:10:26 +08:00
rules_large.yml promtool: Add simple benchmark checkDuplicates benchmark 2021-09-06 23:10:26 +08:00
unittest.yml fixes yamllint errors 2021-06-12 12:47:47 +02:00
url_in_alert_targetgroup_with_relabel_config.bad.yml Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343) 2021-10-28 02:01:28 +02:00
url_in_alert_targetgroup_with_relabel_config.good.yml Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343) 2021-10-28 02:01:28 +02:00
url_in_scrape_targetgroup_with_relabel_config.bad.yml Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343) 2021-10-28 02:01:28 +02:00
url_in_scrape_targetgroup_with_relabel_config.good.yml Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343) 2021-10-28 02:01:28 +02:00