emissary-ingress / emissary

open source Kubernetes-native API gateway for microservices built on the Envoy Proxy
https://www.getambassador.io
Apache License 2.0
4.32k stars 684 forks source link

Can’t Configure STATSD_PORT (STATSD_PORT is hardcoded to 8125) #5166

Open prudhvireddy123 opened 1 year ago

prudhvireddy123 commented 1 year ago

Describe the bug Unable to configure the STATSD_PORT to export the statsd_metrics from envoy. According to the documentation we can configure the STATSD_PORT, But unfortunately the port is hardcoded in the code with 8125

We have statsd Metric sync to Dynatrace , Where dynatrace listens on default 18126 https://www.dynatrace.com/support/help/extend-dynatrace/extend-metrics/ingestion-methods/statsd#remote-statsd.

Expected behavior The STASD_PORT should be configurable.

Additional context Add any other context about the problem here.

cindymullins-dw commented 11 months ago

STATSD_PORT is an environment variable for both Emissary and Edge Stack. And the docs do say "Allows for configuring StatsD on a port other than the default (8125)". Just to clarify, have you tried another port and can you adjust this an an environment variable?

prudhvireddy123 commented 11 months ago

I have tried with other Port it didn't work. 8125 is hard coded in code So no way it will work https://github.com/emissary-ingress/emissary/blob/91b41ffda81e4fe6b042d23a95b1e87164c9b531/python/ambassador/envoy/v3/v3bootstrap.py#L177

cindymullins-dw commented 11 months ago

Ok, thanks for confirming.

prudhvireddy123 commented 8 months ago

@cindymullins-dw Any update on this?