-
Notifications
You must be signed in to change notification settings - Fork 327
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
feat(*) add kafka protocol suport #1121
Conversation
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
func (c *KafkaConfigurer) Configure(filterChain *envoy_listener.FilterChain) error { | ||
pbst, err := proto.MarshalAnyDeterministic( | ||
&envoy_kafka.KafkaBroker{ | ||
StatPrefix: kafkaStatPrefix, |
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.
This should be listener name, look at TCP Proxy stat prefix and pass the same value
kafkaStatPrefix = "kstat" | ||
) | ||
|
||
func Kafka() FilterChainBuilderOpt { |
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.
We need to convert kafka stats to have proper prometheus metrics with two labels
- TYPE
- name (from stats prefix)
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
ae215e1
to
21673e5
Compare
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Summary
add support for Kafka protocol statistics as per https://www.envoyproxy.io/docs/envoy/latest/configuration/listeners/network_filters/kafka_broker_filter#statistics
Prometheus statistics as follows:
Documentation