From b13246861a25336f8f645752fe111a9a82e470f1 Mon Sep 17 00:00:00 2001 From: Marc Falzon Date: Fri, 19 Feb 2016 12:07:07 +0100 Subject: [PATCH] Report packets dropped in interface plugin Add `if_dropped` to the metrics reported by the interface plugin. --- src/interface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/interface.c b/src/interface.c index 1c01f6ff..caaad47a 100644 --- a/src/interface.c +++ b/src/interface.c @@ -286,6 +286,10 @@ static int interface_read (void) incoming = atoll (fields[2]); outgoing = atoll (fields[10]); if_submit (device, "if_errors", incoming, outgoing); + + incoming = atoll (fields[3]); + outgoing = atoll (fields[11]); + if_submit (device, "if_dropped", incoming, outgoing); } fclose (fh); -- 2.30.2