ManagementPortMiddleware should support CF_INSTANCE_PORTS #1419
Labels
Component/Management
Issues related to Steeltoe Management (actuators)
ReleaseLine/4.x
Identified as a feature/fix for the 4.x release line
Type/enhancement
New feature or request
Is your feature request related to a problem? Please describe.
When using
cf register-metrics-endpoint APP-NAME PATH --internal-port PORT
, HTTP requests aren't actually sent to the port specified, but rather to a proxy port that can be found by parsing the environment variableCF_INSTANCE_PORTS
.Example value of
CF_INSTANCE_PORTS
from a sample app that is configured for port 8091:[{\"internal\":8080,\"external_tls_proxy\":61004,\"internal_tls_proxy\":61001},{\"internal\":8080,\"internal_tls_proxy\":61443},{\"internal\":8091,\"external_tls_proxy\":61005,\"internal_tls_proxy\":61002},{\"internal\":2222,\"external_tls_proxy\":61058,\"internal_tls_proxy\":61003}]
Describe the solution you'd like
Steeltoe should evaluate
CF_INSTANCE_PORTS
and consider one or both of the proxy ports to effectively count as requests to the management port.Prototype
The text was updated successfully, but these errors were encountered: