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

Initialize default metrics to 0 #2888

merged 6 commits into from
Oct 24, 2023

Conversation

papabear99
Copy link
Contributor

What does this pull request do? Explain your changes. (required)
Initialize Winning Tickets and Current Sessions to 0

Specific updates (required)

How did you test each of these updates (required)
Built code locally and deployed to production orchestrator

Does this pull request close any open issues?
No

Checklist:

monitor/census.go Outdated Show resolved Hide resolved
Moved functions to 
// init metrics values
	SetTranscodersNumberAndLoad(0, 0, 0)
monitor/census.go Outdated Show resolved Hide resolved
monitor/census.go Outdated Show resolved Hide resolved
papabear99 and others added 2 commits October 23, 2023 08:44
Removed lines from first change
monitor/census.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Merging #2888 (9c0a331) into master (1c2ce07) will increase coverage by 0.01990%.
The diff coverage is 100.00000%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #2888         +/-   ##
===================================================
+ Coverage   56.45311%   56.47301%   +0.01990%     
===================================================
  Files             89          89                 
  Lines          19448       19450          +2     
===================================================
+ Hits           10979       10984          +5     
+ Misses          7861        7858          -3     
  Partials         608         608                 
Files Coverage Δ
monitor/census.go 63.30709% <100.00000%> (+0.05788%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c2ce07...9c0a331. Read the comment docs.

Files Coverage Δ
monitor/census.go 63.30709% <100.00000%> (+0.05788%) ⬆️

... and 1 file with indirect coverage changes

@leszko leszko self-requested a review October 24, 2023 10:41
@leszko leszko self-requested a review October 24, 2023 12:12
@leszko
Copy link
Contributor

leszko commented Oct 24, 2023

The CI build fails, but passes when I tried with a fresh PR #2898. Merging then.

@leszko leszko merged commit d116a4c into livepeer:master Oct 24, 2023
16 of 17 checks passed
eliteprox pushed a commit to eliteprox/go-livepeer that referenced this pull request Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants