Skip to content

Commit

Permalink
agent/dispatcher: Fix inbound monitor msg metrics (#838)
Browse files Browse the repository at this point in the history
Tested locally with pg16-disk-test and the allocate-loop (see the README
for more on this).

Fixes #807
  • Loading branch information
sharnoff authored Mar 4, 2024
1 parent edf5d00 commit ea03617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func (disp *Dispatcher) run(ctx context.Context, logger *zap.Logger, upscaleRequ
handleUpscaleRequest := func(req api.UpscaleRequest) {
// TODO: it shouldn't be this function's responsibility to update metrics.
defer func() {
disp.runner.global.metrics.monitorRequestsInbound.WithLabelValues("UpscaleRequest", "ok")
disp.runner.global.metrics.monitorRequestsInbound.WithLabelValues("UpscaleRequest", "ok").Inc()
}()

resourceReq := api.MoreResources{
Expand Down

0 comments on commit ea03617

Please sign in to comment.