Skip to content

admin: optimize prometheus format stat endopint.#18124

Merged
jmarantz merged 2 commits intoenvoyproxy:mainfrom
mathetake:optimizeprometheusstats
Sep 15, 2021
Merged

admin: optimize prometheus format stat endopint.#18124
jmarantz merged 2 commits intoenvoyproxy:mainfrom
mathetake:optimizeprometheusstats

Conversation

@mathetake
Copy link
Copy Markdown
Member

Signed-off-by: Takeshi Yoneda takeshi@tetrate.io

Commit Message: This commit reduces the computational cost of /stats?format=prometheus endpoint by avoiding the construction of unused (name->stat value) map named "all_stats" only used by text and json formats in the /stats handler.

Additional Description: NA
Risk Level: low
Testing: unittest
Docs Changes: NA
Release Notes: NA
Platform Specific Features: NA
[Optional Runtime guard:] NA
[Optional Fixes #Issue] NA
[Optional Deprecated:] NA

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@jmarantz jmarantz merged commit d94f8d8 into envoyproxy:main Sep 15, 2021
@mathetake mathetake deleted the optimizeprometheusstats branch September 15, 2021 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants