diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 7b14015c7c7..4322fbedb9f 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -10,6 +10,7 @@ This document describes the fields that are exported by Metricbeat. They are grouped in the following categories: * <> +* <> * <> * <> @@ -52,6 +53,288 @@ required: True Event round trip time in microseconds +[[exported-fields-apache-status]] +=== Apache Status Info Fields + +Apache Status + + + +[[exported-fields-apache-status]] +=== Apache Status Info Fields + +Apache Status info + + + +==== apache-status.hostname + +type: string + +Apache hostname + + +==== apache-status.totalAccesses + +type: integer + +Total number of access requests + + +==== apache-status.totalKBytes + +type: integer + +Total number of kilobytes served + + +==== apache-status.reqPerSec + +type: float + +Requests per second + + +==== apache-status.bytesPerSec + +type: float + +Bytes per second + + +==== apache-status.bytesPerReq + +type: float + +Bytes per request + + +==== apache-status.busyWorkers + +type: integer + +Number of busy workers + + +==== apache-status.idleWorkers + +type: integer + +Number of idle workers + + +=== uptime Fields + +Uptime stats + + + +==== apache-status.uptime.serverUptimeSeconds + +type: integer + +Server uptime in seconds + + +==== apache-status.uptime.uptime + +type: integer + +Server uptime + + +=== cpu Fields + +CPU stats + + + +==== apache-status.cpu.cpuLoad + +type: float + +CPU Load + + +==== apache-status.cpu.cpuUser + +type: float + +cpu user load + + +==== apache-status.cpu.cpuSystem + +type: float + +System cpu + + +==== apache-status.cpu.cpuChildrenUser + +type: float + +CPU of children user + + +==== apache-status.cpu.cpuChildrenSystem + +type: float + +cpu of children system + + +=== connections Fields + +Connection stats + + + +==== apache-status.connections.connsTotal + +type: integer + +Total connections + + +==== apache-status.connections.connsAsyncWriting + +type: integer + +Async connectin writing + + +==== apache-status.connections.connsAsyncKeepAlive + +type: integer + +Async keeped alive connetions + + +==== apache-status.connections.connsAsyncClosing + +type: integer + +Async closed connections + + +=== load Fields + +Load averages + + + +==== apache-status.load.load1 + +type: float + +Load average for the last minute + + +==== apache-status.load.load5 + +type: float + +Load avarage for the last 5 minutes + + +==== apache-status.load.load15 + +type: float + +Load aferage for the last 15 minutes + + +=== scoreboard Fields + +Scoreboard metrics + + + +==== apache-status.scoreboard.startingUp + +type: integer + +Starting up + + +==== apache-status.scoreboard.readingRequest + +type: integer + +Reading requests + + +==== apache-status.scoreboard.sendingReply + +type: integer + +Sending Reply + + +==== apache-status.scoreboard.keepalive + +type: integer + +Keep alive + + +==== apache-status.scoreboard.dnsLookup + +type: integer + +Dns Lookups + + +==== apache-status.scoreboard.closingConnection + +type: integer + +Closing connections + + +==== apache-status.scoreboard.logging + +type: integer + +Logging + + +==== apache-status.scoreboard.gracefullyFinishing + +type: integer + +Gracefully finishing + + +==== apache-status.scoreboard.idleCleanup + +type: integer + +Idle cleanups + + +==== apache-status.scoreboard.openSlot + +type: integer + +Open slots + + +==== apache-status.scoreboard.waitingForConnection + +type: integer + +Waiting for connections + + +==== apache-status.scoreboard.total + +type: integer + +Total + + [[exported-fields-redis-info]] === Redis Info Stats Fields diff --git a/metricbeat/etc/fields.yml b/metricbeat/etc/fields.yml index ab84c4c7326..9ced459272c 100644 --- a/metricbeat/etc/fields.yml +++ b/metricbeat/etc/fields.yml @@ -9,6 +9,7 @@ defaults: sections: - ["common", "Common fields"] + - ["apache-status", "Apache Status Info"] - ["redis-info", "Redis Info Stats"] - ["mysql-status", "MySQL Status"] @@ -43,6 +44,177 @@ common: description: > Event round trip time in microseconds +apache-status: + type: group + description: > + Apache Status + fields: + - name: apache-status + type: group + description: > + Apache Status info + fields: + - name: hostname + type: string + description: > + Apache hostname + - name: totalAccesses + type: integer + description: > + Total number of access requests + - name: totalKBytes + type: integer + description: > + Total number of kilobytes served + - name: reqPerSec + type: float + description: > + Requests per second + - name: bytesPerSec + type: float + description: > + Bytes per second + - name: bytesPerReq + type: float + description: > + Bytes per request + - name: busyWorkers + type: integer + description: > + Number of busy workers + - name: idleWorkers + type: integer + description: > + Number of idle workers + - name: uptime + type: group + description: > + Uptime stats + fields: + - name: serverUptimeSeconds + type: integer + description: > + Server uptime in seconds + - name: uptime + type: integer + description: > + Server uptime + - name: cpu + type: group + description: > + CPU stats + fields: + - name: cpuLoad + type: float + description: > + CPU Load + - name: cpuUser + type: float + description: > + cpu user load + - name: cpuSystem + type: float + description: > + System cpu + - name: cpuChildrenUser + type: float + description: > + CPU of children user + - name: cpuChildrenSystem + type: float + description: > + cpu of children system + - name: connections + type: group + description: > + Connection stats + fields: + - name: connsTotal + type: integer + description: > + Total connections + - name: connsAsyncWriting + type: integer + description: > + Async connectin writing + - name: connsAsyncKeepAlive + type: integer + description: > + Async keeped alive connetions + - name: connsAsyncClosing + type: integer + description: > + Async closed connections + - name: load + type: group + description: > + Load averages + fields: + - name: load1 + type: float + description: > + Load average for the last minute + - name: load5 + type: float + description: > + Load avarage for the last 5 minutes + - name: load15 + type: float + description: > + Load aferage for the last 15 minutes + - name: scoreboard + type: group + description: > + Scoreboard metrics + fields: + - name: startingUp + type: integer + description: > + Starting up + - name: readingRequest + type: integer + description: > + Reading requests + - name: sendingReply + type: integer + description: > + Sending Reply + - name: keepalive + type: integer + description: > + Keep alive + - name: dnsLookup + type: integer + description: > + Dns Lookups + - name: closingConnection + type: integer + description: > + Closing connections + - name: logging + type: integer + description: > + Logging + - name: gracefullyFinishing + type: integer + description: > + Gracefully finishing + - name: idleCleanup + type: integer + description: > + Idle cleanups + - name: openSlot + type: integer + description: > + Open slots + - name: waitingForConnection + type: integer + description: > + Waiting for connections + - name: total + type: integer + description: > + Total mysql-status: type: group description: > diff --git a/metricbeat/etc/fields_base.yml b/metricbeat/etc/fields_base.yml index 4398f0ae93d..cfca79d65a2 100644 --- a/metricbeat/etc/fields_base.yml +++ b/metricbeat/etc/fields_base.yml @@ -1,14 +1,15 @@ version: 1.0 defaults: - type: string + type: keyword required: false - index: not_analyzed + index: true doc_values: true ignore_above: 1024 sections: - ["common", "Common fields"] + - ["apache-status", "Apache Status Info"] - ["redis-info", "Redis Info Stats"] - ["mysql-status", "MySQL Status"] diff --git a/metricbeat/metricbeat.template.json b/metricbeat/metricbeat.template.json index fc7b39f1021..f1ba7849404 100644 --- a/metricbeat/metricbeat.template.json +++ b/metricbeat/metricbeat.template.json @@ -21,6 +21,129 @@ "@timestamp": { "type": "date" }, + "apache-status": { + "properties": { + "busyWorkers": { + "type": "integer" + }, + "bytesPerReq": { + "type": "float" + }, + "bytesPerSec": { + "type": "float" + }, + "connections": { + "properties": { + "connsAsyncClosing": { + "type": "integer" + }, + "connsAsyncKeepAlive": { + "type": "integer" + }, + "connsAsyncWriting": { + "type": "integer" + }, + "connsTotal": { + "type": "integer" + } + } + }, + "cpu": { + "properties": { + "cpuChildrenSystem": { + "type": "float" + }, + "cpuChildrenUser": { + "type": "float" + }, + "cpuLoad": { + "type": "float" + }, + "cpuSystem": { + "type": "float" + }, + "cpuUser": { + "type": "float" + } + } + }, + "idleWorkers": { + "type": "integer" + }, + "load": { + "properties": { + "load1": { + "type": "float" + }, + "load15": { + "type": "float" + }, + "load5": { + "type": "float" + } + } + }, + "reqPerSec": { + "type": "float" + }, + "scoreboard": { + "properties": { + "closingConnection": { + "type": "integer" + }, + "dnsLookup": { + "type": "integer" + }, + "gracefullyFinishing": { + "type": "integer" + }, + "idleCleanup": { + "type": "integer" + }, + "keepalive": { + "type": "integer" + }, + "logging": { + "type": "integer" + }, + "openSlot": { + "type": "integer" + }, + "readingRequest": { + "type": "integer" + }, + "sendingReply": { + "type": "integer" + }, + "startingUp": { + "type": "integer" + }, + "total": { + "type": "integer" + }, + "waitingForConnection": { + "type": "integer" + } + } + }, + "totalAccesses": { + "type": "integer" + }, + "totalKBytes": { + "type": "integer" + }, + "uptime": { + "properties": { + "serverUptimeSeconds": { + "type": "integer" + }, + "uptime": { + "type": "integer" + } + } + } + } + }, "mysql-status": { "properties": { "aborted": { diff --git a/metricbeat/module/apache/status/fields.yml b/metricbeat/module/apache/status/fields.yml new file mode 100644 index 00000000000..628414793f1 --- /dev/null +++ b/metricbeat/module/apache/status/fields.yml @@ -0,0 +1,171 @@ +apache-status: + type: group + description: > + Apache Status + fields: + - name: apache-status + type: group + description: > + Apache Status info + fields: + - name: hostname + type: string + description: > + Apache hostname + - name: totalAccesses + type: integer + description: > + Total number of access requests + - name: totalKBytes + type: integer + description: > + Total number of kilobytes served + - name: reqPerSec + type: float + description: > + Requests per second + - name: bytesPerSec + type: float + description: > + Bytes per second + - name: bytesPerReq + type: float + description: > + Bytes per request + - name: busyWorkers + type: integer + description: > + Number of busy workers + - name: idleWorkers + type: integer + description: > + Number of idle workers + - name: uptime + type: group + description: > + Uptime stats + fields: + - name: serverUptimeSeconds + type: integer + description: > + Server uptime in seconds + - name: uptime + type: integer + description: > + Server uptime + - name: cpu + type: group + description: > + CPU stats + fields: + - name: cpuLoad + type: float + description: > + CPU Load + - name: cpuUser + type: float + description: > + cpu user load + - name: cpuSystem + type: float + description: > + System cpu + - name: cpuChildrenUser + type: float + description: > + CPU of children user + - name: cpuChildrenSystem + type: float + description: > + cpu of children system + - name: connections + type: group + description: > + Connection stats + fields: + - name: connsTotal + type: integer + description: > + Total connections + - name: connsAsyncWriting + type: integer + description: > + Async connectin writing + - name: connsAsyncKeepAlive + type: integer + description: > + Async keeped alive connetions + - name: connsAsyncClosing + type: integer + description: > + Async closed connections + - name: load + type: group + description: > + Load averages + fields: + - name: load1 + type: float + description: > + Load average for the last minute + - name: load5 + type: float + description: > + Load avarage for the last 5 minutes + - name: load15 + type: float + description: > + Load aferage for the last 15 minutes + - name: scoreboard + type: group + description: > + Scoreboard metrics + fields: + - name: startingUp + type: integer + description: > + Starting up + - name: readingRequest + type: integer + description: > + Reading requests + - name: sendingReply + type: integer + description: > + Sending Reply + - name: keepalive + type: integer + description: > + Keep alive + - name: dnsLookup + type: integer + description: > + Dns Lookups + - name: closingConnection + type: integer + description: > + Closing connections + - name: logging + type: integer + description: > + Logging + - name: gracefullyFinishing + type: integer + description: > + Gracefully finishing + - name: idleCleanup + type: integer + description: > + Idle cleanups + - name: openSlot + type: integer + description: > + Open slots + - name: waitingForConnection + type: integer + description: > + Waiting for connections + - name: total + type: integer + description: > + Total