prometheus/rules
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
..
fixtures RuleConcurrencyController: Add SplitGroupIntoBatches method (#15681) 2025-01-06 18:51:19 +00:00
alerting.go Rules: Store dependencies instead of boolean (#15689) 2025-01-06 20:48:38 +00:00
alerting_test.go Rules: Store dependencies instead of boolean (#15689) 2025-01-06 20:48:38 +00:00
group.go Rule Concurrency: Simpler loop for sequential (default) executions (#15801) 2025-01-09 23:14:21 +00:00
group_test.go rules.NewGroup: Fix when no logger is passed (#15356) 2024-11-21 16:53:06 +01:00
manager.go promtool: add --ignore-unknown-fields 2025-01-15 11:34:28 +02:00
manager_test.go promtool: add --ignore-unknown-fields 2025-01-15 11:34:28 +02:00
origin.go Decouple ruler dependency controller from concurrency controller 2024-02-02 10:06:37 +01:00
origin_test.go Rules: Store dependencies instead of boolean (#15689) 2025-01-06 20:48:38 +00:00
recording.go Rules: Store dependencies instead of boolean (#15689) 2025-01-06 20:48:38 +00:00
recording_test.go Rules: Store dependencies instead of boolean (#15689) 2025-01-06 20:48:38 +00:00
rule.go Rules: Store dependencies instead of boolean (#15689) 2025-01-06 20:48:38 +00:00