Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   pmseries    ( 1 )

отображать информацию о таймсериях показателей производительности (display information about performance metric timeseries)

Примеры (Examples)

The following sample query shows several fundamental aspects of
       the pmseries query language:

$ pmseries 'kernel.all.load{hostname:"toium"}[count:2]'

eb713a9cf472f775aa59ae90c43cd7f960f7870f [Thu Nov 14 05:57:06.082861000 2019] 1.0e-01 b84040ffccd54f839b65140cf139bab51cbbcf62 [Thu Nov 14 05:57:06.082861000 2019] 6.8e-01 a60b5b3bf25e71071c41934fa4d7d251f765f30c [Thu Nov 14 05:57:06.082861000 2019] 6.4e-01 e1974a062375e6e62370ffadf5b0650dad739480 [Thu Nov 14 05:57:16.091546000 2019] 1.6e-01 b84040ffccd54f839b65140cf139bab51cbbcf62 [Thu Nov 14 05:57:16.091546000 2019] 6.7e-01 a60b5b3bf25e71071c41934fa4d7d251f765f30c [Thu Nov 14 05:57:16.091546000 2019] 6.4e-01 e1974a062375e6e62370ffadf5b0650dad739480

This query returns the two most recent values for all instances of the kernel.all.load metric with a label.hostname matching the regular expression "toium". This is a set-valued metric (i.e., a metric with an ``instance domain'' which in this case consists of three instances: 1, 5 and 15 minute averages). The first column returned is a timestamp, then a floating point value, and finally an instance identifier timeseries hash (two values returned for three instances, so six rows are returned). The metadata for these timeseries can then be further examined:

$ pmseries -a eb713a9cf472f775aa59ae90c43cd7f960f7870f

eb713a9cf472f775aa59ae90c43cd7f960f7870f PMID: 60.2.0 Data Type: float InDom: 60.2 0xf000002 Semantics: instant Units: none Source: 0e89c1192db79326900d82131c31399524f0b3ee Metric: kernel.all.load inst [1 or "1 minute"] series b84040ffccd54f839b65140cf139bab51cbbcf62 inst [5 or "5 minute"] series a60b5b3bf25e71071c41934fa4d7d251f765f30c inst [15 or "15 minute"] series e1974a062375e6e62370ffadf5b0650dad739480 inst [1 or "1 minute"] labels {"agent":"linux","hostname":"toium"} inst [5 or "5 minute"] labels {"agent":"linux","hostname":"toium"} inst [15 or "15 minute"] labels {"agent":"linux","hostname":"toium"}