Skip to content

[beats receivers] Add ability to specify fixed port for the healthcheck extension and Prometheus metrics #10206

@cmacknz

Description

@cmacknz

httpHealthCheckPort, err := findRandomTCPPort()
if err != nil {
return nil, fmt.Errorf("could not find port for http health check: %w", err)
}

We find a random TCP port for the health check extension, this is and should continue to be the default behavior.

We should allow specifying a fixed port however for cases where users may need to whitelist the new port in local iptables or firewall rules.

Probably this belongs in the agent.monitoring section alongside the same port specification used for scrape prometheus metrics from collector internal telemetry that is being introduced in. #9928

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions