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 Disallowing configure AM with the v1 api (#13883) 2024-10-18 15:23:14 +02:00
config_with_tls_files.yml
dump-openmetrics-roundtrip-test.prom promtool: add a "tsdb dump-openmetrics" to dump in OpemMetrics format. 2024-02-28 15:34:18 +01:00
dump-openmetrics-test.prom promtool: add a "tsdb dump-openmetrics" to dump in OpemMetrics format. 2024-02-28 15:34:18 +01:00
dump-test-1.prom promtool: allow setting multiple matchers to "promtool tsdb dump" command. (#13296) 2024-01-15 10:29:53 +00:00
dump-test-2.prom promtool: allow setting multiple matchers to "promtool tsdb dump" command. (#13296) 2024-01-15 10:29:53 +00:00
dump-test-3.prom promtool: allow setting multiple matchers to "promtool tsdb dump" command. (#13296) 2024-01-15 10:29:53 +00:00
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 Fix yaml file format and clear ci errors 2024-03-21 11:32:02 +08:00
prometheus-config.bad.yml
prometheus-config.good.yml
prometheus-config.lint.too_long_scrape_interval.yml promtool: Support linting of scrape interval (#15719) 2025-01-15 08:45:05 +01:00
prometheus-config.lint.yml
prometheus-rules.lint.yml
rules-bad.yml Fix rule check broken (#12715) 2023-09-25 17:48:05 +10:00
rules.yml
rules_duplicates.yml
rules_extrafields.yml promtool: add --ignore-unknown-fields 2025-01-15 11:34:28 +02:00
rules_large.yml
rules_run.yml Add --run flag to promtool test rules 2023-06-28 17:57:32 +01:00
rules_run_extrafields.yml promtool: add --ignore-unknown-fields 2025-01-15 11:34:28 +02:00
unittest.yml Merge pull request #14820 from charleskorn/promqltest-native-histogram-format 2024-09-20 16:47:08 +02:00
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