pcp
[Top] [All Lists]

Re: [pcp] pmval does not print negative values (#67)

To: performancecopilot/pcp <pcp@xxxxxxxxxxxxxxxxxx>
Subject: Re: [pcp] pmval does not print negative values (#67)
From: Ken McDonell <notifications@xxxxxxxxxx>
Date: Tue, 09 Feb 2016 15:50:50 -0800
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1455061850; bh=RhVDzZdn533v1F/0GQbbAUeVdtD0wTdfyQ5tvSTXZSg=; h=From:Reply-To:To:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=tkjlQOLO7w+31X1ozivIkfjC3MnO8LQ4yoYN64z2DBXNIw7qcrfafv9w8tGGjZO5s L5RDDWvEDSt4HuR1xWF3X43yaSdY659Q2uq0GO8Mu03jEt40Ie7e++hCp6vYhsg9tX 2XuqJ4zlBsUPgEFq5KHNYr4V5pZNl0DKx4geEFxE=
In-reply-to: <performancecopilot/pcp/issues/67@xxxxxxxxxx>
List-archive: https://github.com/performancecopilot/pcp
List-id: performancecopilot/pcp <pcp.performancecopilot.github.com>
List-post: <mailto:reply+00bd08b6fdf9696ae0cc0aa55a9cf6e22fdcc0641df5512c92cf0000000112d23d5a92a169ce07e68e66@reply.github.com>
List-unsubscribe: <mailto:unsub+00bd08b6fdf9696ae0cc0aa55a9cf6e22fdcc0641df5512c92cf0000000112d23d5a92a169ce07e68e66@reply.github.com>, <https://github.com/notifications/unsubscribe/AL0ItoULHEXytXfNDunmtFifD6HqpYEuks5pinLagaJpZM4HW0Rc>
References: <performancecopilot/pcp/issues/67@xxxxxxxxxx>
Reply-to: performancecopilot/pcp <reply+00bd08b6fdf9696ae0cc0aa55a9cf6e22fdcc0641df5512c92cf0000000112d23d5a92a169ce07e68e66@xxxxxxxxxxxxxxxx>

But as Frank has pointed out there is already at least one metric with instantaneous semantics and often negative value ...
kenj@bozo:~$ pminfo -dtf swapdev.priority

swapdev.priority [swap resource priority]
Data Type: 32-bit int InDom: 60.6 0xf000006
Semantics: instant Units: count
inst [0 or "/dev/sda7"] value -1

Now the Units are wrong (I'll fix that), but otherwise similar ... but interestingly

kenj@bozo:~$ pmval swapdev.priority

metric: swapdev.priority
host: bozo
semantics: instantaneous value
units: count
samples: all

/dev/sda7
-1
-1

works ... so this may be as small as a corner case in the handling of non-integer values in pmval, as Rares originally suggested.


Reply to this email directly or view it on GitHub.

<Prev in Thread] Current Thread [Next in Thread>