Skip to main content

HTTP Content Types

Counts HTTP bytes and messages, keyed by the media type in the Content-Type header.

PropertyValue
GUID{C0C9757F-2005-4CC5-BB96-D72F607E6188}
LayerL7 Application
InputPackets
Key typeMIME type string
ImplementationNative C++ — CPICGHTTPContentTypes (trisul_probe/src/sysplugs/httpmeters/PICGHTTPContentTypes.cpp), fed by CFilterTCPReass (trisul_probe/src/pcappipe/FilterTCPReass.cpp)
Bucket / Topper60 s / 300 s
Enabled by defaultYes

What it measures​

  • TCP reassembly passes every Content-Type: header it finds to this group. This covers both directions: responses, and requests that carry a body such as POST.
  • Each header adds 1 to the Hits meter.
  • From that point on, every packet of the flow, in both directions, adds its wire length to the Total Traffic meter of that key. Packets seen before the header are not counted.
  • A keep-alive flow that carries several content types feeds each of those keys with the rest of the flow's bytes. The same bytes can then appear under more than one key.
  • Only plain-text HTTP is metered. Requires TCP reassembly (on by default), which is off in NETFLOW_TAP mode.

Keys​

The key is the header value up to the first ;. Parameters such as charset and boundary are dropped. Case is kept as sent. Keys are truncated to 62 characters.

KeyMeaning
text/htmlFrom Content-Type: text/html; charset=UTF-8
application/jsonJSON API payloads
image/jpegJPEG images
multipart/form-dataForm uploads, from a request header

The label is the same as the key.

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update to this group in the interval. Because one flow can feed more than one content type key, Total Traffic here can exceed actual HTTP traffic.

Meter list​

IDNameTypeUnitsTopBottomDescription
0Total TrafficVT_RATE_COUNTERBps3030Wire bytes of every flow packet seen after this Content-Type header, both directions.
1HitsVT_COUNTERhits3030+1 for each HTTP header with this content type.
2uniqsVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
3uniqsVT_GAUGEUniques2020Reserved cardinality slot. Not populated.