itsh3sam opened a new pull request, #12792:
URL: https://github.com/apache/trafficserver/pull/12792

   The current Prometheus output in stats_over_http dumps flattened metric 
names (e.g., `proxy.process.http.200_responses`), which makes it difficult to 
aggregate data in Grafana or Prometheus. This adds a new "v2" output format 
that parses these names into labels like `status="200"` or `method="GET"`.
   
   The new format can be accessed via /_stats/prometheus_v2 or by passing an 
Accept header with version=2.0.0.
   
   To keep this efficient, the parsing uses `swoc::TextView` for a zero- 
allocation approach. It recognizes common ATS patterns such as status codes, 
HTTP methods, cache results, and thread/volume indices. I've also added 
deduplication for the HELP and TYPE metadata lines, so that metrics sharing the 
same base name (but different labels) are grouped correctly in the output.
   
   Includes compile-time unit tests (static_assert) to verify the parsing logic 
and updated AuTests for the new endpoint.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to