Skip to content

stats: add usedonly option to prometheus output format#5805

Merged
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
suhailpatel:prometheus-usedonly
Feb 1, 2019
Merged

stats: add usedonly option to prometheus output format#5805
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
suhailpatel:prometheus-usedonly

Conversation

@suhailpatel
Copy link
Contributor

@suhailpatel suhailpatel commented Feb 1, 2019

Description: Adds support for the usedonly flag when outputting Prometheus stats. This will omit metrics which have never been updated by Envoy.

Risk Level: Low
Testing: Added a few more unit tests to the admin side to ensure it works as intended
Docs Changes: Added a small sentence in the documentation about the usedonly flag
Release Notes: Added a release note item to version_history

We've been running with this at Monzo over the past couple days and it has drastically cut down on the sheer volume of metrics from each Envoy instance.

…e been changed

Signed-off-by: Suhail Patel <me@suhailpatel.com>
Signed-off-by: Suhail Patel <me@suhailpatel.com>
Signed-off-by: Suhail Patel <me@suhailpatel.com>
Signed-off-by: Suhail Patel <me@suhailpatel.com>
@mattklein123 mattklein123 self-assigned this Feb 1, 2019
Copy link
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mattklein123 mattklein123 merged commit c2b5b03 into envoyproxy:master Feb 1, 2019
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
Signed-off-by: Suhail Patel <me@suhailpatel.com>
Signed-off-by: Fred Douglas <fredlas@google.com>
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.

3 participants