| To: | William Staten <William_Staten@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [pcp] CPU metris in Percentage instead of millisec |
| From: | Nathan Scott <nathans@xxxxxxxxxx> |
| Date: | Wed, 4 May 2016 21:53:11 -0400 (EDT) |
| Cc: | pcp@xxxxxxxxxxx |
| Delivered-to: | pcp@xxxxxxxxxxx |
| In-reply-to: | <OFCEB82505.6E60C7AE-ON85257FA9.006495E0-85257FA9.0064EB1F@xxxxxxxxxxxxxxx> |
| References: | <OFCEB82505.6E60C7AE-ON85257FA9.006495E0-85257FA9.0064EB1F@xxxxxxxxxxxxxxx> |
| Reply-to: | Nathan Scott <nathans@xxxxxxxxxx> |
| Thread-index: | 2V9+n5CRX72qOSV9NRDdaTasEzUVKQ== |
| Thread-topic: | CPU metris in Percentage instead of millisec |
Hi William, ----- Original Message ----- > I wanted to know if it was a way in Performance CO-Pilot to get the CPU > metrics to get logged as Percentage instead of millisec. If it is possible > where would I create this? You probably want to use "derived metrics" in this situation - continue logging metrics as counters, but later present them to the PCP tools as new metrics where the values have been transformed into percentages. This configuration file should do it: cpu.percent.user = 100 * (kernel.all.cpu.user + kernel.all.cpu.nice) / hinv.ncpu cpu.percent.sys = 100 * kernel.all.cpu.sys / hinv.ncpu cpu.percent.idle = 100 * kernel.all.cpu.idle / hinv.ncpu cpu.percent.wait = 100 * kernel.all.cpu.wait.total / hinv.ncpu cpu.percent.steal = 100 * kernel.all.cpu.steal / hinv.ncpu There's more details on the PCPIntro(1) man page, in the $PCP_DERIVED_CONFIG section (under "ENVIRONMENT"). cheers. -- Nathan |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pcp] Detecting PCP Installation Location?, Nathan Scott |
|---|---|
| Next by Date: | Re: [performancecopilot/pcp] Windows build for Vector (#89), Nathan Scott |
| Previous by Thread: | CPU metris in Percentage instead of millisec, William_Staten |
| Next by Thread: | Re: [pcp] CPU metris in Percentage instead of millisec, William_Staten |
| Indexes: | [Date] [Thread] [Top] [All Lists] |