Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize default metrics to 0 #2888

Merged
merged 6 commits into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions monitor/census.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,8 @@
Exporter = pe
// init metrics values
SetTranscodersNumberAndLoad(0, 0, 0)
stats.Record(census.ctx, census.mWinningTicketsRecv.M(int64(0)))
stats.Record(census.ctx, census.mCurrentSessions.M(int64(0)))
leszko marked this conversation as resolved.
Show resolved Hide resolved
}

/*
Expand Down Expand Up @@ -1158,7 +1160,7 @@
}
}

func (cen *censusMetricsCounter) segmentEmerged(nonce, seqNo uint64, profilesNum int) {

Check warning on line 1163 in monitor/census.go

View workflow job for this annotation

GitHub Actions / Run tests defined for the project

parameter 'profilesNum' seems to be unused, consider removing or renaming it as _
cen.lock.Lock()
defer cen.lock.Unlock()
if _, has := cen.emergeTimes[nonce]; !has {
Expand Down
Loading