Skip to content

Add TCPTimeouts to netstat default filter - #2189

Merged
SuperQ merged 1 commit into
prometheus:masterfrom
martinkennelly:feature/tcp-timeouts
Nov 18, 2021
Merged

SuperQ merged 1 commit into
prometheus:masterfrom
martinkennelly:feature/tcp-timeouts

Conversation

@martinkennelly

Copy link
Copy Markdown
Contributor

TCP timeouts count is a useful signal to show
abnormal network performance and is another
signal to aid debugging. This metric can be
used to generate proactive alerts for host
network namespace workloads.

Signed-off-by: Martin Kennelly mkennell@redhat.com

@martinkennelly

Copy link
Copy Markdown
Contributor Author

I don't understand why test CI is failing.

@ventifus

Copy link
Copy Markdown
Contributor

You'll want to add this new metric to the end-to-end test's output fixture in collector/fixtures/e2e-output.txt
Here's the change you want to make:

--- collector/fixtures/e2e-output.txt	2021-10-29 15:09:32.563636013 +0000
+++ /tmp/node_exporter_e2e_test.azBPP2/e2e-output.txt	2021-10-29 15:10:43.395416878 +0000
@@ -2240,6 +2240,9 @@
 # HELP node_netstat_TcpExt_SyncookiesSent Statistic TcpExtSyncookiesSent.
 # TYPE node_netstat_TcpExt_SyncookiesSent untyped
 node_netstat_TcpExt_SyncookiesSent 0
+# HELP node_netstat_TcpExt_TCPTimeouts Statistic TcpExtTCPTimeouts.
+# TYPE node_netstat_TcpExt_TCPTimeouts untyped
+node_netstat_TcpExt_TCPTimeouts 115
 # HELP node_netstat_Tcp_ActiveOpens Statistic TcpActiveOpens.
 # TYPE node_netstat_Tcp_ActiveOpens untyped
 node_netstat_Tcp_ActiveOpens 3556

You can check that the end-to-end test passes by running end-to-end-test.sh.

TCP timeouts count is a useful signal to show
abnormal network performance and is another
signal to aid debugging. This metric can be
used to generate proactive alerts for host
network namespace workloads.

Signed-off-by: Martin Kennelly <mkennell@redhat.com>

@discordianfish discordianfish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, seems reasonable to me.

@SuperQ SuperQ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@SuperQ
SuperQ merged commit 4065902 into prometheus:master Nov 18, 2021
@juzhao juzhao mentioned this pull request Jun 12, 2023
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
TCP timeouts count is a useful signal to show
abnormal network performance and is another
signal to aid debugging. This metric can be
used to generate proactive alerts for host
network namespace workloads.

Signed-off-by: Martin Kennelly <mkennell@redhat.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this pull request Apr 9, 2024
TCP timeouts count is a useful signal to show
abnormal network performance and is another
signal to aid debugging. This metric can be
used to generate proactive alerts for host
network namespace workloads.

Signed-off-by: Martin Kennelly <mkennell@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants