prometheus/cmd/promtool/testdata
Giedrius Statkevičius 92218ecb9b promtool: add --ignore-unknown-fields
Add --ignore-unknown-fields that ignores unknown fields in rule group
files. There are lots of tools in the ecosystem that "like" to extend
the rule group file structure but they are currently unreadable by
promtool if there's anything extra. The purpose of this flag is so that
we could use the "vanilla" promtool instead of rolling our own.

Some examples of tools/code:

https://github.com/grafana/mimir/blob/main/pkg/mimirtool/rules/rwrulefmt/rulefmt.go
8898eb3cc5/pkg/rules/rules.go (L18-L25)

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
2025-01-15 11:34:28 +02:00
..
at-modifier-test.yml
at-modifier.yml
authorization_credentials_file.bad.yml
authorization_credentials_file.good.yml
bad-input-series.yml
bad-promql.yml
bad-rules-error-test.yml
bad-rules-error.yml
bad-rules-syntax-test.yml
bad-rules-syntax.yml
bad-sd-file-extension.nonexistant
bad-sd-file-format.yml
config_with_rule_files.yml
config_with_service_discovery_files.yml
config_with_tls_files.yml
dump-openmetrics-roundtrip-test.prom
dump-openmetrics-test.prom
dump-test-1.prom
dump-test-2.prom
dump-test-3.prom
failing.yml
good-sd-file.json
good-sd-file.yaml
good-sd-file.yml
long-period.yml
metrics-test.prom
negative-offset-test.yml
negative-offset.yml
no-test-group-interval.yml
prometheus-config.bad.yml
prometheus-config.good.yml
prometheus-config.lint.too_long_scrape_interval.yml
prometheus-config.lint.yml
prometheus-rules.lint.yml
rules-bad.yml
rules.yml
rules_duplicates.yml
rules_extrafields.yml
rules_large.yml
rules_run.yml
rules_run_extrafields.yml
unittest.yml
url_in_alert_targetgroup_with_relabel_config.bad.yml
url_in_alert_targetgroup_with_relabel_config.good.yml
url_in_scrape_targetgroup_with_relabel_config.bad.yml
url_in_scrape_targetgroup_with_relabel_config.good.yml