Bug #6732
closedeve/stats: parent interface object in stats contains VLAN-ID as keys
Description
The suricata_exporter translating from Suricata's dump-counters JSON output to Prometheus metrics expects all entries in the "threads" object to map thread names per interface to further JSON objects containing stats for individual threads.
With Suricata 7.0.3 (and possibly others), when a VLAN tagged interface is used, the parent interface contains a map where the children are the VLAN Tags:
These inconsistent structure is problematic for a successful decoding in all the cases. A better approach would be to have this form:
as per the command ip output:
45: bond1.30@bond1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
A related issue exists in the suricata_exporter repo:
https://github.com/corelight/suricata_exporter/issues/12
Files
JL Updated by Jeff Lucovsky almost 3 years ago
@vpiserchia Can you provide the entire dump-counters output?
VP Updated by Vito Piserchia almost 3 years ago
- Subject changed from Suricata 7.0.3 parent interface object in stats contains VLAN-ID as keys to Suricata 7.0.2 parent interface object in stats contains VLAN-ID as keys
- Affected Versions 7.0.2 added
- Affected Versions deleted (
7.0.3)
VP Updated by Vito Piserchia almost 3 years ago
Added {{dump-conters}} output
AW Updated by Arne Welzel almost 3 years ago
Proposed fix: https://github.com/OISF/suricata/pull/10316
VJ Updated by Victor Julien almost 3 years ago
- Status changed from New to In Progress
- Assignee changed from OISF Dev to Arne Welzel
- Target version changed from TBD to 8.0.0-beta1
- Label Needs backport to 7.0 added
OT Updated by OISF Ticketbot almost 3 years ago
- Subtask #6746 added
OT Updated by OISF Ticketbot almost 3 years ago
- Label deleted (
Needs backport to 7.0)
JL Updated by Jeff Lucovsky almost 3 years ago
- Status changed from In Progress to In Review
JL Updated by Jeff Lucovsky over 2 years ago
- Blocks Bug #6398: eve/stats: threads object in stats contains memcap_pressure scalars added
JL Updated by Jeff Lucovsky over 2 years ago
- Related to Bug #6907: Fix stats key (7.0.x backport) added
JL Updated by Jeff Lucovsky over 2 years ago
- Status changed from In Review to Resolved
PA Updated by Philippe Antoine over 2 years ago
- Status changed from Resolved to Closed
VJ Updated by Victor Julien over 1 year ago
- Subject changed from Suricata 7.0.2 parent interface object in stats contains VLAN-ID as keys to eve/stats: parent interface object in stats contains VLAN-ID as keys