You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f.DurationVar(&cfg.HeartbeatPeriod, "querier.ring.heartbeat-period", 5*time.Second, "Period at which to heartbeat to the ring. 0 = disabled.")
86
+
f.DurationVar(&cfg.HeartbeatTimeout, "querier.ring.heartbeat-timeout", time.Minute, "The heartbeat timeout after which rulers are considered unhealthy within the ring. 0 = never (timeout disabled).")
87
+
f.DurationVar(&cfg.FinalSleep, "querier.ring.final-sleep", 0*time.Second, "The sleep seconds when ruler is shutting down. Need to be close to or larger than KV Store information propagation delay")
88
+
f.IntVar(&cfg.ReplicationFactor, "querier.ring.replication-factor", 1, "EXPERIMENTAL: The replication factor to use when loading rule groups for API HA.")
89
+
f.BoolVar(&cfg.ZoneAwarenessEnabled, "querier.ring.zone-awareness-enabled", false, "EXPERIMENTAL: True to enable zone-awareness and load rule groups across different availability zones for API HA.")
90
+
f.StringVar(&cfg.TokensFilePath, "querier.ring.tokens-file-path", "", "EXPERIMENTAL: File path where tokens are stored. If empty, tokens are not stored at shutdown and restored at startup.")
91
+
f.BoolVar(&cfg.DetailedMetricsEnabled, "querier.ring.detailed-metrics-enabled", true, "Set to true to enable ring detailed metrics. These metrics provide detailed information, such as token count and ownership per tenant. Disabling them can significantly decrease the number of metrics emitted.")
f.Var((*flagext.StringSlice)(&cfg.InstanceInterfaceNames), "querier.ring.instance-interface-names", "Name of network interface to read address from.")
96
+
f.StringVar(&cfg.InstanceAddr, "querier.ring.instance-addr", "", "IP address to advertise in the ring.")
97
+
f.IntVar(&cfg.InstancePort, "querier.ring.instance-port", 0, "Port to advertise in the ring (defaults to server.grpc-listen-port).")
98
+
f.StringVar(&cfg.InstanceID, "querier.ring.instance-id", hostname, "Instance ID to register in the ring.")
99
+
f.StringVar(&cfg.InstanceZone, "querier.ring.instance-availability-zone", "", "The availability zone where this instance is running. Required if zone-awareness is enabled.")
100
+
f.IntVar(&cfg.NumTokens, "querier.ring.num-tokens", 128, "Number of tokens for each ruler.")
101
+
f.BoolVar(&cfg.KeepInstanceInTheRingOnShutdown, "querier.ring.keep-instance-in-the-ring-on-shutdown", false, "Keep instance in the ring on shut down.")
36
102
}
37
103
38
104
func (cfg*Config) RegisterFlags(f*flag.FlagSet) {
105
+
cfg.QuerierRing.RegisterFlags(f)
106
+
39
107
f.StringVar(&cfg.SchedulerAddress, "querier.scheduler-address", "", "Hostname (and port) of scheduler that querier will periodically resolve, connect to and receive queries from. Only one of -querier.frontend-address or -querier.scheduler-address can be set. If neither is set, queries are only received via HTTP endpoint.")
40
108
f.StringVar(&cfg.FrontendAddress, "querier.frontend-address", "", "Address of query frontend service, in host:port format. If -querier.scheduler-address is set as well, querier will use scheduler instead. Only one of -querier.frontend-address or -querier.scheduler-address can be set. If neither is set, queries are only received via HTTP endpoint.")
0 commit comments