Skip to content
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

Remove unused metron_endpoint.dropsonde_port property #537

Merged
merged 1 commit into from Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions jobs/loggregator_trafficcontroller/spec
Expand Up @@ -88,9 +88,6 @@ properties:
metron_endpoint.host:
description: "The host used to emit messages to the Metron agent"
default: "127.0.0.1"
metron_endpoint.dropsonde_port:
description: "The port used to emit dropsonde messages to the Metron agent"
default: 3457
metron_endpoint.grpc_port:
description: "The port used to emit grpc messages to the Metron agent"
default: 3458
Expand Down
1 change: 0 additions & 1 deletion jobs/loggregator_trafficcontroller/templates/bpm.yml.erb
Expand Up @@ -28,7 +28,6 @@ processes:
- name: loggregator_trafficcontroller
executable: /var/vcap/packages/loggregator_trafficcontroller/trafficcontroller
env:
AGENT_UDP_ADDRESS: "<%= p('metron_endpoint.host').to_s + ":" + p('metron_endpoint.dropsonde_port').to_s %>"
AGENT_GRPC_ADDRESS: "<%= p('metron_endpoint.host').to_s + ":" + p('metron_endpoint.grpc_port').to_s %>"

ROUTER_ADDRS: "<%= router_addrs.join(",") %>"
Expand Down
2 changes: 1 addition & 1 deletion src/testservers/traffic_controller.go
Expand Up @@ -37,7 +37,7 @@ func BuildTrafficControllerConf(routerAddr string, agentPort int, logCacheAddr s
ServerName: "cloud-controller",
},
Agent: tcConf.Agent{
UDPAddress: fmt.Sprintf("localhost:%d", agentPort),
GRPCAddress: fmt.Sprintf("localhost:%d", agentPort),
},
GRPC: tcConf.GRPC{
CertFile: LoggregatorTestCerts.Cert("trafficcontroller"),
Expand Down
1 change: 0 additions & 1 deletion src/trafficcontroller/app/config.go
Expand Up @@ -10,7 +10,6 @@ import (

// Agent stores configuration for communication to a logging/metric agent.
type Agent struct {
UDPAddress string `env:"AGENT_UDP_ADDRESS"`
GRPCAddress string `env:"AGENT_GRPC_ADDRESS"`
}

Expand Down