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
}
}
},
- "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": {
},
"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": {
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(