stats: Memcap pressure max relocation

This commit moves the memcap pressure/pressure_max stats from the global
stats namespace into the memcap namespace.

With per-thread stats, they will be within the flow-manager's values.

Issue: 6398
pull/10832/head
Jeff Lucovsky 2 years ago committed by Victor Julien
parent 7a5a1e2560
commit 2dfa4cecb5

@ -3734,15 +3734,6 @@
}
}
},
"memcap_pressure": {
"description":
"Percentage of memcaps used by flow, stream, stream-reassembly and app-layer-http",
"type": "integer"
},
"memcap_pressure_max": {
"description": "Maximum memcap_pressure seen by the engine",
"type": "integer"
},
"app_layer": {
"type": "object",
"properties": {
@ -5298,6 +5289,21 @@
},
"additionalProperties": false
},
"memcap": {
"type": "object",
"properties": {
"pressure": {
"description":
"Percentage of memcaps used by flow, stream, stream-reassembly and app-layer-http",
"type": "integer"
},
"pressure_max": {
"description": "Maximum pressure seen by the engine",
"type": "integer"
}
},
"additionalProperties": false
},
"ftp": {
"type": "object",
"properties": {

@ -654,8 +654,8 @@ static void FlowCountersInit(ThreadVars *t, FlowCounters *fc)
fc->flow_bypassed_pkts = StatsRegisterCounter("flow_bypassed.pkts", t);
fc->flow_bypassed_bytes = StatsRegisterCounter("flow_bypassed.bytes", t);
fc->memcap_pressure = StatsRegisterCounter("memcap_pressure", t);
fc->memcap_pressure_max = StatsRegisterMaxCounter("memcap_pressure_max", t);
fc->memcap_pressure = StatsRegisterCounter("memcap.pressure", t);
fc->memcap_pressure_max = StatsRegisterMaxCounter("memcap.pressure_max", t);
}
static void FlowCountersUpdate(

Loading…
Cancel
Save