Repository navigation
Conversation
After ServerReporter's first report, scrape /metrics and /metrics/statistics and fail on a repeated # TYPE family, an invalid metric name or an unquoted label value (apache/hugegraph#3344, apache/hugegraph#3348).
Author
|
Ran the full The metrics step passed on both the source-built server and the binary package. It added 42 s and 44 s, mostly waiting for the first metrics report. The run also needed two workflow fixes for the current Toolchain, which are in #580. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of the PR
validate-release.shnow scrapes/metricsand/metrics/statisticson each started Server and fails on a repeated# TYPEfamily, a metric name outside[a-zA-Z_:][a-zA-Z0-9_:]*, or an unquoted label value. apache/hugegraph#3344 fixed the names and apache/hugegraph#3348 fixed the other two.The repeated families only appear after ServerReporter's first report, 60 s after the Server starts, so a scrape right after startup passes on an affected build. The new
metricsstep therefore waits up to 180 s for/metrics/gaugesto become non-empty; it returns the reporter's last report and is empty before the first one. It also requires a request sample such asmetrics_gauges_GET{name=...}in/metrics/statistics.hugegraph_info{version="..."}is quoted even on affected builds, so on its own it would let the label check pass.Local runs (Windows, JDK 17, RocksDB, Server started with
javadirectly, about 65 s per run):MetricsAPI/MetricsUtilfrom d90946df (parent of #3348)In one saved scrape from each failing setup,
/metricshad 215 (1.7.0) and 257 (d90946df) repeated# TYPEfamilies, and/metrics/statisticshad 5 request samples with an unquotednamevalue. No invalid metric name showed up, so only the unit test covers the name check. On master I also edited two copies of the live pages, one with a# TYPEline duplicated and one with the label quotes removed, and the check flagged both.This is an endpoint check, not a full-package run: I have not run the whole
validate-release.shflow, and its workflow only runs forrelease-*branches. Normally the step waits at most one 60 s report period, less if the Server has been up longer; the poll limit is 180 s. Unit tests cover the parser and the wait (python3 -m unittest discover -s dist/tests).