Skip to content

Coroot Node Agent: "error encoding and sending metric family: write tcp ... broken pipe" #289

@somasundar-espina

Description

@somasundar-espina

While running the Coroot Node Agent in our Kubernetes cluster, we are observing repeated broken pipe errors in the node agent logs when it tries to encode and send metric families.

The errors appear continuously and seem to indicate that the TCP connection to the receiving endpoint is being closed unexpectedly while metrics are being transmitted.

Logs
E0306 12:19:19.614375 435883 main.go:193] error encoding and sending metric family: write tcp 10.244.2.225:80->10.244.0.63:47976: write: broken pipe
E0306 12:19:19.614375 435883 main.go:193] error encoding and sending metric family: write tcp 10.244.2.225:80->10.244.0.63:47976: write: broken pipe
E0306 12:19:19.614375 435883 main.go:193] error encoding and sending metric family: write tcp 10.244.2.225:80->10.244.0.63:47976: write: broken pipe
E0306 12:19:19.614375 435883 main.go:193] error encoding and sending metric family: write tcp 10.244.2.225:80->10.244.0.63:47976: write: broken pipe
E0306 12:19:19.920647 435883 main.go:193] error encoding and sending metric family: write tcp 10.244.2.225:80->10.244.0.63:46878: write: broken pipe
E0306 12:19:19.920647 435883 main.go:193] error encoding and sending metric family: write tcp 10.244.2.225:80->10.244.0.63:46878: write: broken pipe
E0306 12:19:19.920647 435883 main.go:193] error encoding and sending metric family: write tcp 10.244.2.225:80->10.244.0.63:46878: write: broken pipe

Observations
The issue occurs repeatedly in the logs.
It appears when the node agent is sending metric families.
The error suggests the remote side closes the connection before the write completes.

Questions
Is this expected behavior in some scenarios (e.g., connection reuse or client disconnect)?
Could this indicate a configuration or networking issue between the node agent and the receiver?
Please let me know if any additional logs or debugging information would help investigate this further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions