-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add field for last GC pause time #2121
Conversation
0d74afa
to
a8b0265
Compare
@@ -202,6 +203,7 @@ func (i *InfluxDB) gatherURL( | |||
"next_gc": m.NextGC, | |||
"last_gc": m.LastGC, | |||
"pause_total_ns": m.PauseTotalNs, | |||
"pause_ns": m.PauseNs[(m.NumGC+255)%256], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if NumGC == 0? Should the index be 255?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The index doesn't matter when NumGC == 0 since every element in PauseNs[0:256] will be zero.
@sparrc Any reason why this wouldn't make the 1.2.0 release? |
None in particular, just a large backlog :), I'll try to get it in since it's a rather small change |
a8b0265
to
df5a04e
Compare
Required for all PRs: