Tomcat requests metricset

edit

This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

Requests Metricset retrieves the JMX key Catalina:name=*,type=GlobalRequestProcessor using Jolokia. It exposes the following metrics:

  • tomcat.requests.mbean: Number of requests processed
  • tomcat.requests.total: Number of requests processed
  • tomcat.requests.bytes.received: Amount of data received, in bytes
  • tomcat.requests.bytes.sent: Amount of data sent, in bytes
  • tomcat.requests.processing.ms: Total time to process the requests
  • tomcat.requests.errors.total: Number of errors

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.

Fields

edit

For a description of each field in the metricset, see the exported fields section.

Here is an example document generated by this metricset:

{
    "@timestamp": "2019-09-19T13:42:47.806Z",
    "@metadata": {
        "beat": "metricbeat",
        "type": "_doc",
        "version": "8.0.0"
    },
    "event": {
        "dataset": "tomcat.requests",
        "module": "tomcat",
        "duration": 97947886
    },
    "metricset": {
        "name": "requests",
        "period": 10000
    },
    "service": {
        "address": "localhost:8080",
        "type": "tomcat"
    },
    "tomcat": {
        "requests": {
            "processing": {
                "ms": 0
            },
            "errors": {
                "total": 0
            },
            "total": 0,
            "mbean": "Catalina:name=\"http-nio-8080\",type=GlobalRequestProcessor",
            "bytes": {
                "received": 0,
                "sent": 0
            }
        }
    },
    "host": {
        "containerized": false,
        "hostname": "mcastro",
        "name": "mcastro",
        "architecture": "x86_64",
        "os": {
            "name": "Antergos Linux",
            "kernel": "5.0.13-arch1-1-ARCH",
            "platform": "antergos",
            "version": "",
            "family": ""
        },
        "id": "54f70115bae545cbac2b150f254472a0"
    },
    "agent": {
        "type": "metricbeat",
        "ephemeral_id": "ccb9ebe2-bd8b-4d90-a362-37132e09370b",
        "hostname": "mcastro",
        "id": "7e36a073-1a32-4a94-b65b-4c7f971fb228",
        "version": "8.0.0"
    },
    "ecs": {
        "version": "1.1.0"
    }
}