Skip to content

stats: add prefix to StatsConfig#604

Merged
mattklein123 merged 6 commits intoenvoyproxy:masterfrom
athampy:envoy-2897
Apr 10, 2018
Merged

stats: add prefix to StatsConfig#604
mattklein123 merged 6 commits intoenvoyproxy:masterfrom
athampy:envoy-2897

Conversation

@athampy
Copy link
Member

@athampy athampy commented Apr 4, 2018

Add prefix field to StatsdSink proto definition to support custom prefixes.
See envoyproxy/envoy#2897 for more details.

Signed-off-by: Akhil Thampy akhil@akhilthampy.com

Signed-off-by: Akhil Thampy <akhil@akhilthampy.com>
// Envoy will connect to this cluster to flush statistics.
string tcp_cluster_name = 2;
}
string prefix = 3;
Copy link
Member

Choose a reason for hiding this comment

The 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!

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

Signed-off-by: Akhil Thampy <akhil@akhilthampy.com>
string tcp_cluster_name = 2;
}
// [#not-implemented-hide:] Optional custom prefix for StatsdSink. If
// specified, this will override the default prefix.
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Member

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" ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@mattklein123 mattklein123 self-assigned this Apr 5, 2018
Signed-off-by: Akhil Thampy <akhil@akhilthampy.com>
Signed-off-by: Akhil Thampy <akhil@akhilthampy.com>
Signed-off-by: Akhil Thampy <akhil@akhilthampy.com>
// .. code-block:: cpp
// envoy.test_counter:1|c
// envoy.test_timer:5|ms

Copy link
Member

Choose a reason for hiding this comment

The 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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry! This is what it looks like now:

Signed-off-by: Akhil Thampy <akhil@akhilthampy.com>
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.

Nice, thanks!

@mattklein123 mattklein123 merged commit 922ec7b into envoyproxy:master Apr 10, 2018
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