Skip to content
Snippets Groups Projects
Unverified Commit 3b6d46b5 authored by gotjosh's avatar gotjosh
Browse files

RuleQueryOffset: Add omitempty for the global configuration

A small oversight of when I introduced https://github.com/prometheus/prometheus/pull/14061

, I could add a test to cover it but it seems like an overkill given other similar attributes don't have it either. Let me know if you think it's worth it.

Signed-off-by: default avatargotjosh <josue.abreu@gmail.com>
parent 8a08f452
No related merge requests found
......@@ -399,7 +399,7 @@ type GlobalConfig struct {
// How frequently to evaluate rules by default.
EvaluationInterval model.Duration `yaml:"evaluation_interval,omitempty"`
// Offset the rule evaluation timestamp of this particular group by the specified duration into the past to ensure the underlying metrics have been received.
RuleQueryOffset model.Duration `yaml:"rule_query_offset"`
RuleQueryOffset model.Duration `yaml:"rule_query_offset,omitempty"`
// File to which PromQL queries are logged.
QueryLogFile string `yaml:"query_log_file,omitempty"`
// The labels to add to any timeseries that this Prometheus instance scrapes.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment