-
Notifications
You must be signed in to change notification settings - Fork 273
stats: add prefix to StatsConfig #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
7c94d79
0e3e802
59efd25
085caee
085b5ed
0842511
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -155,6 +155,24 @@ message StatsdSink { | |
| // Envoy will connect to this cluster to flush statistics. | ||
| string tcp_cluster_name = 2; | ||
| } | ||
| // [#not-implemented-hide:] Optional custom prefix for StatsdSink. If | ||
| // specified, this will override the default prefix. | ||
| // For example: | ||
| // .. code-block:: json | ||
| // prefix : "envoy-prod" | ||
| // will change emitted stats to | ||
| // .. code-block:: cpp | ||
| // envoy-prod.test_counter:1|c | ||
| // envoy-prod.test_timer:5|ms | ||
| // | ||
| // Note that the default prefix, "envoy", will be used if a prefix is not | ||
| // specified. | ||
| // Stats with default prefix: | ||
| // .. code-block:: cpp | ||
| // envoy.test_counter:1|c | ||
| // envoy.test_timer:5|ms | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please view the rendered docs. This blank line makes the docs not attach.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| string prefix = 3; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add documentation as well as the not-implemented-hide tag until it's implemented. Thanks!
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated. |
||
| } | ||
|
|
||
| // Stats configuration proto schema for built-in *envoy.dog_statsd* sink. | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you potentially given an example of how this would be used and what change it will make in the emitted metrics?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you specify what the default is if not specified? "envoy" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!