forked from pivotal-cf/docs-pcf-healthwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metrics.html.md.erb
437 lines (376 loc) · 12.9 KB
/
metrics.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
---
title: PCF Healthwatch Metrics
owner: PCF Healthwatch
---
This topic lists derived and generated metrics provided by Pivotal Cloud Foundry (PCF) Healthwatch. The metrics are used to monitor the health and performance of the PCF platform.
##<a id='cli'></a>Cloud Foundry CLI Health
The Cloud Foundry command line interface (CLI) enables developers to create and manage PCF apps. PCF Healthwatch executes a continuous test suite validating the core app developer functions of the CLI.
See the table below for information on metrics related to Cloud Foundry CLI smoke tests.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>Can push</td>
<td><code>healthwatch.health.check.cliCommand.push</code> and <code>healthwatch.health.check.cliCommand.push.timeout</code></td>
<td>5 min</td>
<td><code>1</code> = pass, <code>0</code> = fail, or <code>-1</code> = test did not run</td>
</tr>
<tr>
<td>Can start</td>
<td><code>healthwatch.health.check.cliCommand.start</code> and <code>healthwatch.health.check.cliCommand.start.timeout</code></td>
<td>5 min</td>
<td><code>1</code> = pass, <code>0</code> = fail, or <code>-1</code> = test did not run</td>
</tr>
<tr>
<td>Receiving logs</td>
<td><code>healthwatch.health.check.cliCommand.logs</code> and <code>healthwatch.health.check.cliCommand.logs.timeout</code></td>
<td>5 min</td>
<td><code>1</code> = pass, <code>0</code> = fail, or <code>-1</code> test did not run</td>
</tr>
<tr>
<td>Can stop</td>
<td><code>healthwatch.health.check.cliCommand.stop</code> and <code>healthwatch.health.check.cliCommand.stop.timeout</code></td>
<td>5 min</td>
<td><code>1</code> = pass, <code>0</code> = fail, or <code>-1</code> test did not run</td>
</tr>
<tr>
<td>Can delete</td>
<td><code>healthwatch.health.check.cliCommand.delete</code> and <code>healthwatch.health.check.cliCommand.delete.timeout</code></td>
<td>5 min</td>
<td><code>1</code> = pass, <code>0</code> = fail, or <code>-1</code> test did not run</td>
</tr>
<tr>
<td>Test app push time</td>
<td><code>healthwatch.health.check.cliCommand.pushTime</code></td>
<td>5 min</td>
<td>Time in ms</td>
</tr>
<tr>
<td>Overall smoke test battery result</td>
<td><code>healthwatch.health.check.cliCommand.success</code></td>
<td>5 min</td>
<td><code>1</code> = pass or <code>0</code> = fail</td>
</tr>
<tr>
<td>Overall smoke test battery run time</td>
<td><code>healthwatch.health.check.cliCommand.duration</code></td>
<td>5 min</td>
<td>Time in ms</td>
</tr>
</table>
<p class="note"><strong>Note</strong>: Timeout metrics are written only when a timeout occurs. Their value is always zero.</p>
##<a id='opsman'></a>Ops Manager Health
Issues with Ops Manager health can impact an operator's ability to perform an upgrade or to rescale the PCF platform when necessary. Therefore, it is recommended to continuously monitor Ops Manager availability. PCF Healthwatch executes this check as a part of its test suite.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>Ops Manager availability</td>
<td><code>healthwatch.health.check.OpsMan.available</code></td>
<td>1 min</td>
<td><code>1</code> = pass or <code>0</code> = fail</td>
</tr>
</table>
##<a id='appsman'></a>Apps Manager Health
These metrics help users to monitor app availability and responsiveness. PCF Healthwatch uses Apps Manager as a canary app and continuously checks its health.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>Apps Manager availability</td>
<td><code>healthwatch.health.check.AppsMan.available</code></td>
<td>1 min</td>
<td><code>1</code> = pass or <code>0</code> = fail</td>
</tr>
<tr>
<td>Aps Manager response time</td>
<td><code>healthwatch.health.check.AppsMan.responseTime</code></td>
<td>1 min</td>
<td>Time in ms</td>
</tr>
</table>
##<a id='bosh-director'></a>BOSH Director Health
Losing the BOSH Director does not significantly impact the experience of PCF end users. However, this issue means a loss of resiliency for BOSH-managed VMs. It is recommended to continuously monitor the BOSH Director health. PCF Healthwatch executes this check as a part of its test suite.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>BOSH Director health</td>
<td><code>healthwatch.health.check.bosh.director.success</code> and <code>healthwatch.health.check.bosh.director.timeout</code></td>
<td>10 min</td>
<td><code>1</code> = pass or <code>0</code> = fail</td>
</tr>
</table>
<p class="note"><strong>Note</strong>: The timeout metric is written if a deploy or delete task takes more than 10 minutes.</p>
##<a id='loss-rates'></a>Loss Rates
This section lists metrics used to monitor Loggregator, the PCF component responsible for logging.
###<a id='firehose-loss'></a>Firehose Loss Rate
This metric calculation is recommended for automating and monitoring platform scaling. Two versions of the metric (per minute and per hour) are used to monitor the Loggregator Firehose.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Description</th>
</tr>
<tr>
<td>Firehose loss rate</td>
<td><code>healthwatch.Firehose.LossRate.1H</code> and <code>healthwatch.Firehose.LossRate.1M</code></td>
<td>Loss rate per minute and per hour</td>
</tr>
</table>
###<a id='adapter-loss'></a>Adapter Loss Rate
This metric calculation is recommended for automating and monitoring platform scaling. The metric is used to monitor the Scalable Syslog feature of Loggregator.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Description</th>
</tr>
<tr>
<td>Adapter loss rate (syslog drain performance)</td>
<td><code>healthwatch.ScalableSyslog.Adapter.LossRate.1M</code></td>
<td>Loss rate per minute</td>
</tr>
</table>
###<a id='rlp-loss'></a>Reverse Log Proxy Loss Rate
This metric calculation is recommended for automating and monitoring platform scaling. The metric is used to monitor the Scalable Syslog feature of Loggregator.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Description</th>
</tr>
<tr>
<td>Reverse Log Proxy loss rate (syslog drain performance)</td>
<td><code>healthwatch.ScalableSyslog.RLP.LossRate.1M</code></td>
<td>Loss rate per minute</td>
</tr>
</table>
##<a id='capacity'></a>Capacity Metrics
This section lists metrics used to monitor the total percentage of available memory, disk, and cell container capacity.
###<a id='memory'></a>Available Memory
This metric calculation is recommended for automating and monitoring platform scaling.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Description</th>
</tr>
<tr>
<td>Available memory</td>
<td><code>healthwatch.Diego.TotalPercentageAvailableMemoryCapacity.5M</code></td>
<td>Percentage of available memory (averaged over 5 min)</td>
</tr>
</table>
###<a id='disk'></a>Available Disk
This metric calculation is recommended for automating and monitoring platform scaling.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Description</th>
</tr>
<tr>
<td>Available disk</td>
<td><code>healthwatch.Diego.TotalPercentageAvailableDiskCapacity.5M</code></td>
<td>Percentage of available disk (averaged over 5 min)</td>
</tr>
</table>
###<a id='cell-container'></a>Available Cell Container Capacity
This metric calculation is recommended for automating and monitoring platform scaling.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Description</th>
</tr>
<tr>
<td>Available cell container capacity</td>
<td><code>healthwatch.Diego.TotalPercentageAvailableContainerCapacity.5M</code></td>
<td>Percentage of available cell container capacity (averaged over 5 min)</td>
</tr>
</table>
##<a id='bosh-deployment'></a>BOSH Deployment Occurrence
Monitoring BOSH deployment occurrence adds context to related data, such as VM (job) health.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>BOSH deployment occurrence</td>
<td><code>healthwatch.bosh.deployment</code></td>
<td>30 sec</td>
<td><code>1</code> = a running deployment or <code>0</code> = not a running deployment</td>
</tr>
</table>
##<a id='other-metrics'></a>Other Platform Metrics
This section lists existing platform metrics used by PCF Healthwatch. For more information about these metrics, see [Key Performance Indicators](https://docs.pivotal.io/pivotalcf/1-11/monitoring/kpi.html) and [Key Capacity Scaling Indicators](https://docs.pivotal.io/pivotalcf/1-11/monitoring/key-cap-scaling.html).
###<a id='job-health'></a>Job Health
The Job Health metric is used for every VM in the CF deployment. This does not include additional deployments, such as MySQL or Redis.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>Job health</td>
<td><code>system.healthy</code></td>
<td>1 min</td>
<td><code>1</code> = the system is healthy or <code>0</code> = the system is not healthy</td>
</tr>
</table>
###<a id='job-vitals'></a>Job Vitals
The Job Vitals metrics are written for core ERT jobs. This does not include additional deployments, such as MySQL or Redis.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>CPU utilization</td>
<td><code>system.cpu.user</code></td>
<td>1 min</td>
<td>Percentage of CPU used</td>
</tr>
<tr>
<td>Memory utilization</td>
<td><code>system.mem.percent</code></td>
<td>1 min</td>
<td>Percentage of system memory used</td>
</tr>
<tr>
<td>Disk utilization</td>
<td><code>system.disk.system.percent</code></td>
<td>1 min</td>
<td>Percentage of system disk used</td>
</tr>
<tr>
<td>Persistent disk utilization</td>
<td><code>system.disk.persistent.percent</code></td>
<td>1 min</td>
<td>Percentage of persistent disk used</td>
</tr>
<tr>
<td>Ephemeral disk utilization</td>
<td><code>system.disk.ephemeral.percent</code></td>
<td>1 min</td>
<td>Percentage of ephemeral disk used</td>
</tr>
</table>
###<a id='kpis-capacity'></a>Diego Cell Capacity
The Diego Cell Capacity metrics are used to monitor the amount of memory and disk available for a Diego cell.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>Available memory</td>
<td><code>rep.CapacityRemainingMemory</code></td>
<td>1 min</td>
<td>Amount of memory (MiB) available for a Diego cell to allocate to containers</td>
</tr>
<tr>
<td>Available disk</td>
<td><code>rep.CapacityRemainingDisk</code></td>
<td>1 min</td>
<td>Amount of disk (MiB) available for a Diego cell to allocate to containers</td>
</tr>
</table>
###<a id='app-instances'></a>Application Instances
The Application Instances metrics are used to monitor the health of application instances (AIs). For more information about the lifecycle of an app container and crash events, see [Crash Events](https://docs.pivotal.io/pivotalcf/1-11/devguide/deploy-apps/app-lifecycle.html#crash-events).
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>Current running AIs and change in running AIs</td>
<td><code>bbs.LRPsRunning</code></td>
<td>During events</td>
<td>Total number of LRP instances running on Diego cells</td>
</tr>
<tr>
<td>Crashed AIs</td>
<td><code>bbs.CrashedActualLRPs</code></td>
<td>30 sec</td>
<td>Total number of LRP instances that have crashed in a deployment</td>
</tr>
</table>
###<a id='logging'></a>Logging Performance
The Loggregator Firehose throughput metric is used to monitor PCF logging performance.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>Firehose throughput</td>
<td><code>DopplerServer.listeners.totalReceivedMessageCount</code></td>
<td>5 sec</td>
<td>Total number of messages received across all Doppler listeners</td>
</tr>
</table>
###<a id='router'></a>Router
The Router metrics are used to monitor the health and performance of the Gorouter.
<table class="nice">
<tr>
<th>Test</th>
<th>Metric</th>
<th>Frequency</th>
<th>Description</th>
</tr>
<tr>
<td>Router throughput</td>
<td><code>gorouter.total_requests</code></td>
<td>5 sec</td>
<td>Lifetime number of requests completed by the Gorouter VM</td>
</tr>
<tr>
<td>Router latency</td>
<td><code>gorouter.latency</code></td>
<td>Emitted per Gorouter request</td>
<td>Time (ms) the Gorouter takes to handle requests to its app endpoints</td>
</tr>
<tr>
<td>Router jobs CPU</td>
<td><code>system.cpu.user</code></td>
<td>1 min</td>
<td>Percentage of CPU used by the Gorouter job</td>
</tr>
<tr>
<td>502 bad gateways</td>
<td><code>gorouter.bad_gateways</code></td>
<td>5 sec</td>
<td>Lifetime number of bad gateways, or 502 responses, from the Gorouter itself</td>
</tr>
</table>