You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: container-metrics.html.md.erb
+39-6Lines changed: 39 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -73,28 +73,39 @@ The following table describes all Diego container metrics:
73
73
<td>The log rate limit in bytes per second for an app instance.</td>
74
74
<td><code>float64</code></td>
75
75
</tr>
76
+
</tr><tr>
77
+
<td><code>rx_bytes</code></td>
78
+
<td>Received network traffic in bytes for an app instance.</td>
79
+
<td><code>uint64</code></td>
80
+
</tr>
81
+
</tr><tr>
82
+
<td><code>tx_bytes</code></td>
83
+
<td>Transmitted network traffic in bytes for an app instance.</td>
84
+
<td><code>uint64</code></td>
85
+
</tr>
76
86
</table>
77
87
78
88
The way that Diego emits container metrics differs depending on the version of Loggregator used in your <%=vars.app_runtime_abbr%> deployment:
79
89
80
90
* **Loggregator v1:** Diego emits most container metrics in a `ContainerMetric` envelope. Diego emits the `absolute_entitlement`, `absolute_usage`,
81
91
`container_age`, `log_rate`, and `log_rate_limit` container metrics in `ValueMetric` envelopes.
82
92
83
-
* **Loggregator v2:** Diego emits all container metrics in gauge envelopes. Diego emits the `absolute_entitlement`, `absolute_usage`, `container_age`, `log_rate`, and `log_rate_limit` container metrics in separate gauge envelopes from other container metrics. The container metrics come in three envelopes:
93
+
* **Loggregator v2:** Diego emits all container metrics in gauge and counter envelopes. Diego emits the `absolute_entitlement`, `absolute_usage`, `container_age`, `log_rate`, and `log_rate_limit` container metrics in separate gauge envelopes from other container metrics. The container metrics come in five envelopes:
84
94
* One envelope containing `cpu`, `disk`, `disk_quota`, `memory`, and `memory_quota`
85
95
* One envelope containing `absolute_entitlement`, `absolute_usage`, and `container_age`
86
96
* One envelope containing `log_rate` and `log_rate_limit`
97
+
* One envelope containing `rx_bytes`
98
+
* One envelope containing `tx_bytes`
87
99
88
100
89
101
## <aid='cf-cli'></a> Retrieving container metrics from the cf CLI
90
102
91
103
You can retrieve container metrics using the Cloud Foundry Command Line Interface (cf CLI).
92
104
93
-
To retrieve CPU, memory, and disk metrics for all instances of an application, see [Retrieve CPU, Memory, and Disk Metrics](#cpu-mem-disk).
94
-
95
-
To retrieve CPU entitlement metrics for all instances of an application, see [Retrieve CPU Entitlement Metrics](#cpu-entitlement).
96
-
97
-
To determine when an application has exceeded its CPU entitlement, see [Monitor Apps That Exceed Their CPU Entitlement](#cpu-entitlement).
105
+
* To retrieve CPU, memory, and disk metrics for all instances of an application, see [Retrieve CPU, memory, and disk metrics](#cpu-mem-disk).
106
+
* To retrieve CPU entitlement metrics for all instances of an app, see [Retrieve CPU Entitlement metrics](#cpu-entitlement).
107
+
* To determine when an app has exceeded its CPU entitlement, see [Monitor apps that exceed their CPU Entitlement](#cpu-entitlement).
108
+
* To retrieve network traffic metrics for all instances of an app, see [Retrieve network traffic metrics](#cf-network-traffic).
98
109
99
110
### <aid='cf-mem-disk'></a> Retrieving CPU, Memory, and Disk metrics
The previous example output shows that the three listed apps have an average CPU usage that exceeds 100% of their entitlements. When an app's average CPU usage
190
201
exceeds its CPU entitlement, consider increasing their CPU entitlement to ensure that they do not become throttled.
0 commit comments