Change subsystem to "storage" in remote_read_queries gauge

Updated the Prometheus gauge definition for `remote_read_queries` to
reflect the correct subsystem ("storage" instead of "api").

Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
Signed-off-by: Julien <roidelapluie@o11y.eu>
This commit is contained in:
Julien Pivotto 2024-08-09 12:55:39 +02:00 committed by Julien
parent 20a5f742e8
commit 01209b384a

View file

@ -57,8 +57,8 @@ func NewReadHandler(logger log.Logger, r prometheus.Registerer, queryable storag
marshalPool: &sync.Pool{},
queries: prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "prometheus",
Subsystem: "api", // TODO: changes to storage in Prometheus 3.0.
Namespace: namespace,
Subsystem: "remote_read_handler",
Name: "remote_read_queries",
Help: "The current number of remote read queries being executed or waiting.",
}),