-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#23578] YSQL: Add HELP and TYPE to :13000/prometheus-metrics
Summary: Similar to D25254, adds the following metadata to the YSQL Prometheus metrics endpoint for each metric: - #HELP: A brief description of the metric - #TYPE: Type of the metric, in this case either gauge or counter. Gauge metrics can increase or decrease: for example, the number of YSQL connections is a gauge metric. Counters can only increase: for example, the number of select statements executed is a counter metric. By default, HELP and TYPE metadata are always shown. If a user wants to get the metrics without the metadata, they can use the `?show_help=false` URL parameter. Connection manager metric descriptions are taken from D27240. Also, move `ParseRequestOptions` out of the anonymous namespace in `default-path-handlers.cc` so that the pgsql webserver can use it. Jira: DB-12496 Test Plan: ``` ./yb_build.sh --cxx-test pgwrapper_pg_libpq-test --gtest_filter PgLibPqTest.CatalogCacheIdMissMetricsTest ./yb_build.sh --cxx-test pgwrapper_pg_libpq-test --gtest_filter PgLibPqTest.PrometheusMetricsHelpAndTypeTest ``` Reviewers: yyan, myang Reviewed By: myang Subscribers: svc_phabricator, esheng, yql, ybase Differential Revision: https://phorge.dev.yugabyte.com/D37766
- Loading branch information
Showing
7 changed files
with
290 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.