Skip to content

Commit

Permalink
Switch back to add zero
Browse files Browse the repository at this point in the history
Signed-off-by: twthorn <[email protected]>
  • Loading branch information
twthorn committed Feb 27, 2025
1 parent 5998513 commit 239367b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/vt/vtgate/vstream_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ func (vs *vstream) startOneStream(ctx context.Context, sgtid *binlogdatapb.Shard
defer vs.wg.Done()

labelValues := []string{sgtid.Keyspace, sgtid.Shard, vs.tabletType.String()}
vs.vsm.vstreamsEndedWithErrors.Reset(labelValues)
// Initialize vstreamsEndedWithErrors metric to zero.
vs.vsm.vstreamsEndedWithErrors.Add(labelValues, 0)
vs.vsm.vstreamsCreated.Add(labelValues, 1)
vs.vsm.vstreamsCount.Add(labelValues, 1)

Expand Down

0 comments on commit 239367b

Please sign in to comment.