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
Upgrade prometheus/client_golang and reconfigure to restore go_sched.*
metrics
#6957
Upgrade prometheus/client_golang and reconfigure to restore go_sched.*
metrics
#6957
Conversation
These metrics were removed unintentionally in grafana#6403 Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
9320d17
to
47ba154
Compare
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell. + ingester 0%
+ distributor 0%
+ querier 0%
+ querier/queryrange 0%
+ iter 0%
+ storage 0%
+ chunkenc 0%
+ logql 0%
+ loki 0.1% |
go_sched.*
metricsgo_sched.*
metrics
go_sched.*
metricsgo_sched.*
metrics
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.
LGTM
@@ -96,8 +97,23 @@ const ( | |||
UsageReport string = "usage-report" | |||
) | |||
|
|||
func (t *Loki) initRegisterer() prometheus.Registerer { |
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.
nit: The name of this function makes it look like there is a module called Registerer.
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.
That's true, I think I'll leave this for now and refactor it when I get rid of the reliance on the prometheus.DefaultXXX
references
@DylanGuedes raised a point in Slack: will the upgrade of prometheus/common@v0.35.0...v0.37.0 The diff doesn't seem to show anything too scary, and unfortunately there is no changelog in |
….*` metrics (#6957) * Upgrading prometheus/client_golang to restore go_sched.* metrics These metrics were removed unintentionally in #6403 Signed-off-by: Danny Kopping <danny.kopping@grafana.com> * Fixing test to match interface correctly Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Adding all available metrics from Go Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Adding all available metrics from Go Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
Adding all available metrics from Go Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
@dannykopping Can we consider backporting this to 2.6? My key pain point is:
|
Sure 👍 |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-6957-to-release-2.6.x origin/release-2.6.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 2321da49b580dd00204fe9f19a0db837af8d19f0
# Push it to GitHub
git push --set-upstream origin backport-6957-to-release-2.6.x
git switch main
# Remove the local backport branch
git branch -D backport-6957-to-release-2.6.x Then, create a pull request where the |
Adding all available metrics from Go Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
….*` metrics (grafana#6957) * Upgrading prometheus/client_golang to restore go_sched.* metrics These metrics were removed unintentionally in grafana#6403 Signed-off-by: Danny Kopping <danny.kopping@grafana.com> * Fixing test to match interface correctly Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
…grafana#6962) Adding all available metrics from Go Signed-off-by: Danny Kopping <danny.kopping@grafana.com> Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
What this PR does / why we need it:
These metrics were removed unintentionally in #6403.
The
go_sched_latencies
histogram is very important for determining pathological scheduler behaviour (I need it to verify the impact of #6954).Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
Don't be afraid of the PR size; it's mainly just revendored code.
Checklist
CHANGELOG.md
.docs/sources/upgrading/_index.md