| To: | Nathan Scott <nathans@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [pcp] pmie support for string-typed metrics |
| From: | Mark Goodwin <mgoodwin@xxxxxxxxxx> |
| Date: | Mon, 2 May 2016 11:36:29 +1000 |
| Cc: | pcp <pcp@xxxxxxxxxxx> |
| Delivered-to: | pcp@xxxxxxxxxxx |
| In-reply-to: | <1425795935.44525257.1462152712852.JavaMail.zimbra@xxxxxxxxxx> |
| References: | <220069218.39805602.1460521052029.JavaMail.zimbra@xxxxxxxxxx> <733731954.39808417.1460522806449.JavaMail.zimbra@xxxxxxxxxx> <a54a13c7-4824-499c-8fa6-232cbd33ffaf.maildroid@localhost> <1337028064.40108627.1460601063575.JavaMail.zimbra@xxxxxxxxxx> <5726A8FC.7070303@xxxxxxxxxx> <1425795935.44525257.1462152712852.JavaMail.zimbra@xxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 |
On 05/02/2016 11:31 AM, Nathan Scott wrote: Hi Mark, ----- Original Message -----[...] I've been thinking about this topic - not just for string valued metrics (btw: hinv.map.scsi is another one in this class), but also for discrete integer typed metrics, such as hinv.ndisk etc.Its also a bit like the proc.psinfo.environ case that Martins came across, I think.These metrics need to be logged more than "once"; rather more like "when changed". Once logged, they retain their discrete value (string or integer) until logged again with a new value. As an alternative to pmie monitoring these metrics and telling pmlogger to log them again via pmlc, maybe pmlogger could just maintain a cache (suitably indexed for efficiency) - when a discrete metric/instance/value with logging frequency of "when changed" changes, write it to the log again.I guess that would involve fetching these metrics like normal, but modifying the pmResult to drop them, before writing to disk. A bit like the inverse of derived metrics, where the pmresult is added to with new metrics. Might need a new pmlogger-language grouping keyword to indicate this new kind of on-change-only behaviour for certain metrics? (Or, automatically done for all string-type metrics?)
How about "async" logging frequency
e.g. :
log advisory on async {
hinv
kernel.uname
filesys.mountdir
filesys.blocksize
filesys.capacity
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pcp] pmie support for string-typed metrics, Nathan Scott |
|---|---|
| Next by Date: | Re: [pcp] pmie support for string-typed metrics, Martins Innus |
| Previous by Thread: | Re: [pcp] pmie support for string-typed metrics, Nathan Scott |
| Next by Thread: | Re: [pcp] pmie support for string-typed metrics, Ken McDonell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |