| To: | Nathan Scott <nathans@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [pcp] CPU metris in Percentage instead of millisec |
| From: | William_Staten@xxxxxxxxxxxxxxx |
| Date: | Fri, 6 May 2016 09:26:23 -0400 |
| Cc: | pcp@xxxxxxxxxxx |
| Delivered-to: | pcp@xxxxxxxxxxx |
| In-reply-to: | <199652686.45418494.1462413191474.JavaMail.zimbra@xxxxxxxxxx> |
| References: | <OFCEB82505.6E60C7AE-ON85257FA9.006495E0-85257FA9.0064EB1F@xxxxxxxxxxxxxxx> <199652686.45418494.1462413191474.JavaMail.zimbra@xxxxxxxxxx> |
|
Thanks Nathan. I updated the pmwebd.options
file with the PCP_DERIVED_CONFIG=/path/to/your/file. If I run export PCP_DERIVED_CONFIG=pathtofile
and then pmval -t 2sec cpu.percent.user I can see the output in percentage.
Is it a way to get this sent to the graphite or grafana for graphing? Is
any documentation on that? I have searched for some documentation but maybe
I am not looking in the correct place.
Thanks William Staten I.T. Operations Information Services Navy Federal Credit Union wk: 703.206.3198 cell: 703.300.0743 From: Nathan Scott <nathans@xxxxxxxxxx> To: William Staten <William_Staten@xxxxxxxxxxxxxxx>, Cc: <pcp@xxxxxxxxxxx> Date: 05/04/2016 09:53 PM Subject: Re: [pcp] 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: | [Bug 1333702] Python PMAPI lacks support for containers, bugzilla |
|---|---|
| Next by Date: | Re: [pcp] Client Certificates, Martins Innus |
| Previous by Thread: | Re: [pcp] CPU metris in Percentage instead of millisec, Nathan Scott |
| Next by Thread: | Re: [pcp] CPU metris in Percentage instead of millisec, Nathan Scott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |