Skip to content

Commit 92b2f8d

Browse files
authored
Merge pull request #210 from simianhacker/fixes-156 (#215)
Update Infrastructure UI documentation with metric definitions
1 parent b7b124b commit 92b2f8d

File tree

1 file changed

+55
-2
lines changed

1 file changed

+55
-2
lines changed

docs/en/infraops/installation.asciidoc

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ image::add-data.png[]
5050
* If your data source isn't in the list, or you want to install {beats} the old
5151
fashioned way:
5252

53-
** Follow the
53+
** Follow the
5454
{metricbeat-ref}/metricbeat-getting-started.html[{metricbeat} getting started]
5555
and enable modules for the metrics you want to collect.
5656

@@ -64,10 +64,11 @@ learn how to configure inputs.
6464
For either approach, you need to enable modules in {filebeat} and {metricbeat}
6565
to populate the {infra-ui} UI with data.
6666

67+
6768
[float]
6869
==== Which modules and configuration options do I enable?
6970

70-
To populate the *Hosts* view and add logs, enable:
71+
To populate the *Hosts* view and add logs, enable:
7172

7273
* {metricbeat-ref}/metricbeat-module-system.html[{metricbeat} `system` module] (enabled by default)
7374
* {filebeat-ref}/filebeat-module-system.html[{filebeat} `system` module]
@@ -91,6 +92,58 @@ module]
9192
* {filebeat-ref}/filebeat-input-docker.html[{filebeat} `docker` input]
9293
* {filebeat-ref}/add-kubernetes-metadata.html[{filebeat} `add_kubernetes_metadata` processor]
9394

95+
[float]
96+
==== Which fields are used for the metrics on the Infrastructue home page?
97+
98+
The metrics listed below are provided by the Beats Shippers. Each system type requires their corresponding identity field to be in the same event document:
99+
100+
* Hosts require `host.name`
101+
* Docker containers require `container.id`
102+
* Kibernetes pods require `kibernetes.pod.uid`
103+
104+
105+
[float]
106+
===== Host Metrics
107+
108+
*CPU Usage*:: Average of `system.cpu.user.pct` added to the average of `system.cpu.system.pct` divided by `system.cpu.cores`
109+
110+
*Memory Usage*:: Average of `system.memory.actual.used.pct`
111+
112+
*Load*:: Average of `system.load.5`
113+
114+
*Inbound Traffic*:: Derivative of the max of `system.netowrk.in.bytes` scaled to a 1 second rate
115+
116+
*Outbound Traffic*:: Derivative of the max of `system.netowrk.out.bytes` scaled to a 1 second rate
117+
118+
*Log Rate*:: Derivative of the cumulative sum of the document count scaled to a 1 second rate.
119+
This metric relies on the same indices as the logs.
120+
121+
122+
[float]
123+
===== Docker Container Metrics
124+
125+
*CPU Usage*:: Average of `docker.cpu.total.pct`
126+
127+
*Memory Usage*:: Average of `docker.memory.usage.pct`
128+
129+
*Inbound Traffic*:: Derivative of the max of `docker.network.in.bytes` scaled to a 1 second rate
130+
131+
*Outbound Traffic*:: Derivative of the max of `docker.network.out.bytes` scaled to a 1 second rate
132+
133+
134+
[float]
135+
===== Kubernetes Pod Metrics
136+
137+
*CPU Usage*:: Average of `kubernetes.pod.cpu.usage.node.pct`
138+
139+
*Memory Usage*:: Average of `kubernetes.pod.memory.usage.pct`
140+
141+
*Inbound Traffic*:: Derivative of the max of `kubernetes.pod.network.rx.bytes` scaled to a 1 second rate
142+
143+
*Outbound Traffic*:: Derivative of the max of `kubernetes.pod.network.tx.bytes` scaled to a 1 second rate
144+
145+
146+
94147
[float]
95148
==== More about container monitoring
96149

0 commit comments

Comments
 (0)