summaryrefslogtreecommitdiff
path: root/qa/259.out
blob: de04dfa9240a167aafa6d00093ef26170509c982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
QA output created by 259
No errors here ...

# instantaneous
derived.inst = delta(sample.longlong.million)
# counter
derived.ctr = delta(pmcd.pdu_in.total)

Derived metric initialization from $PCP_DERIVED_CONFIG
pmLoadDerivedConfig("TMP.config")
pmRegisterDerived: register metric[0] derived.inst = delta(sample.longlong.million)
pmRegisterDerived: register metric[1] derived.ctr = delta(pmcd.pdu_in.total)
__dmopencontext: bind metric[0] derived.inst
__dmopencontext: bind metric[1] derived.ctr
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  2.0.21 (pmcd.hostname): numval: 1 valfmt: 1 vlist[]:
   value "HOST"
Note: timezone set to "TZ=UTC"

__dmgetpmid: metric "derived.inst" -> PMID 511.0.1
metric:    derived.inst
host:      HOST
semantics: instantaneous value
units:     none
samples:   4
interval:  0.25 sec
derived metrics prefetch added 1 metrics: 29.0.23
__dmpostfetch: [0] root node 511.0.1: numval=0
expr node <addr> type=DELTA left=<addr> right=(nil) save_last=0
    PMID: PM_ID_NULL (511.0.1 from pmDesc) numval: 0
    Data Type: 64-bit int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: none
expr node <addr> type=NAME left=(nil) right=(nil) save_last=1 [sample.longlong.million] master=0
    PMID: 29.0.23 (29.0.23 from pmDesc) numval: 1
    Data Type: 64-bit int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: none
[0] inst=-1, val=<number>
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  511.0.1 (derived.inst): No values returned!
No values available
derived metrics prefetch added 1 metrics: 29.0.23
__dmpostfetch: [0] root node 511.0.1: numval=1 vset[0]: inst=-1 ll=0
expr node <addr> type=DELTA left=<addr> right=(nil) save_last=0
    PMID: PM_ID_NULL (511.0.1 from pmDesc) numval: 1
    Data Type: 64-bit int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: none
[0] inst=-1, val=<number>
expr node <addr> type=NAME left=(nil) right=(nil) save_last=1 [sample.longlong.million] master=0
    PMID: 29.0.23 (29.0.23 from pmDesc) numval: 1
    Data Type: 64-bit int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: none
[0] inst=-1, val=<number> (last inst=-1, val=<number>)
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  511.0.1 (derived.inst): numval: 1 valfmt: 1 vlist[]:
   value 0
                    0
derived metrics prefetch added 1 metrics: 29.0.23
__dmpostfetch: [0] root node 511.0.1: numval=1 vset[0]: inst=-1 ll=0
expr node <addr> type=DELTA left=<addr> right=(nil) save_last=0
    PMID: PM_ID_NULL (511.0.1 from pmDesc) numval: 1
    Data Type: 64-bit int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: none
[0] inst=-1, val=<number>
expr node <addr> type=NAME left=(nil) right=(nil) save_last=1 [sample.longlong.million] master=0
    PMID: 29.0.23 (29.0.23 from pmDesc) numval: 1
    Data Type: 64-bit int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: none
[0] inst=-1, val=<number> (last inst=-1, val=<number>)
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  511.0.1 (derived.inst): numval: 1 valfmt: 1 vlist[]:
   value 0
                    0
derived metrics prefetch added 1 metrics: 29.0.23
__dmpostfetch: [0] root node 511.0.1: numval=1 vset[0]: inst=-1 ll=0
expr node <addr> type=DELTA left=<addr> right=(nil) save_last=0
    PMID: PM_ID_NULL (511.0.1 from pmDesc) numval: 1
    Data Type: 64-bit int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: none
[0] inst=-1, val=<number>
expr node <addr> type=NAME left=(nil) right=(nil) save_last=1 [sample.longlong.million] master=0
    PMID: 29.0.23 (29.0.23 from pmDesc) numval: 1
    Data Type: 64-bit int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: none
[0] inst=-1, val=<number> (last inst=-1, val=<number>)
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  511.0.1 (derived.inst): numval: 1 valfmt: 1 vlist[]:
   value 0
                    0

Derived metric initialization from $PCP_DERIVED_CONFIG
pmLoadDerivedConfig("TMP.config")
pmRegisterDerived: register metric[0] derived.inst = delta(sample.longlong.million)
pmRegisterDerived: register metric[1] derived.ctr = delta(pmcd.pdu_in.total)
__dmopencontext: bind metric[0] derived.inst
__dmopencontext: bind metric[1] derived.ctr
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  2.0.21 (pmcd.hostname): numval: 1 valfmt: 1 vlist[]:
   value "HOST"
Note: timezone set to "TZ=UTC"

__dmgetpmid: metric "derived.ctr" -> PMID 511.0.2
metric:    derived.ctr
host:      HOST
semantics: instantaneous value
units:     count
samples:   4
interval:  0.25 sec
derived metrics prefetch added 1 metrics: 2.1.16
__dmpostfetch: [0] root node 511.0.2: numval=0
expr node <addr> type=DELTA left=<addr> right=(nil) save_last=0
    PMID: PM_ID_NULL (511.0.2 from pmDesc) numval: 0
    Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: count
expr node <addr> type=NAME left=(nil) right=(nil) save_last=1 [pmcd.pdu_in.total] master=0
    PMID: 2.1.16 (2.1.16 from pmDesc) numval: 1
    Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: counter  Units: count
[0] inst=-1, val=<number>
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  511.0.2 (derived.ctr): No values returned!
No values available
derived metrics prefetch added 1 metrics: 2.1.16
__dmpostfetch: [0] root node 511.0.2: numval=1 vset[0]: inst=-1 u=2
expr node <addr> type=DELTA left=<addr> right=(nil) save_last=0
    PMID: PM_ID_NULL (511.0.2 from pmDesc) numval: 1
    Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: count
[0] inst=-1, val=<number>
expr node <addr> type=NAME left=(nil) right=(nil) save_last=1 [pmcd.pdu_in.total] master=0
    PMID: 2.1.16 (2.1.16 from pmDesc) numval: 1
    Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: counter  Units: count
[0] inst=-1, val=<number> (last inst=-1, val=<number>)
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  511.0.2 (derived.ctr): numval: 1 valfmt: 0 vlist[]:
   value 2
          2
derived metrics prefetch added 1 metrics: 2.1.16
__dmpostfetch: [0] root node 511.0.2: numval=1 vset[0]: inst=-1 u=3
expr node <addr> type=DELTA left=<addr> right=(nil) save_last=0
    PMID: PM_ID_NULL (511.0.2 from pmDesc) numval: 1
    Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: count
[0] inst=-1, val=<number>
expr node <addr> type=NAME left=(nil) right=(nil) save_last=1 [pmcd.pdu_in.total] master=0
    PMID: 2.1.16 (2.1.16 from pmDesc) numval: 1
    Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: counter  Units: count
[0] inst=-1, val=<number> (last inst=-1, val=<number>)
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  511.0.2 (derived.ctr): numval: 1 valfmt: 0 vlist[]:
   value 3
          3
derived metrics prefetch added 1 metrics: 2.1.16
__dmpostfetch: [0] root node 511.0.2: numval=1 vset[0]: inst=-1 u=3
expr node <addr> type=DELTA left=<addr> right=(nil) save_last=0
    PMID: PM_ID_NULL (511.0.2 from pmDesc) numval: 1
    Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: instant  Units: count
[0] inst=-1, val=<number>
expr node <addr> type=NAME left=(nil) right=(nil) save_last=1 [pmcd.pdu_in.total] master=0
    PMID: 2.1.16 (2.1.16 from pmDesc) numval: 1
    Data Type: 32-bit unsigned int  InDom: PM_INDOM_NULL 0xffffffff
    Semantics: counter  Units: count
[0] inst=-1, val=<number> (last inst=-1, val=<number>)
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  511.0.2 (derived.ctr): numval: 1 valfmt: 0 vlist[]:
   value 3
          3

Errors and empty results here ...

myname.a = delta(
myname.b = delta + 3
myname.c = delta(sample.long.one + sample.long.hundred)
myname.d = delta(12345)

Derived metric initialization from $PCP_DERIVED_CONFIG
pmLoadDerivedConfig("TMP.config")
[TMP.config:1] Error: pmRegisterDerived(myname.a, ...) syntax error
 delta(
      ^
End of input
pmRegisterDerived: register metric[0] myname.b = delta + 3
[TMP.config:3] Error: pmRegisterDerived(myname.c, ...) syntax error
 delta(sample.long.one + sample.long.hundred)
                       ^                     
[TMP.config:4] Error: pmRegisterDerived(myname.d, ...) syntax error
 delta(12345)
       ^     
__dmgetpmid: metric "delta" -> Unknown metric name
bind_expr: error: derived metric myname.b: operand: delta: Unknown metric name
pmFetch returns ...
TIMESTAMP ... numpmid: 1
  2.0.21 (pmcd.hostname): numval: 1 valfmt: 1 vlist[]:
   value "HOST"
Note: timezone set to "TZ=UTC"

__dmgetpmid: metric "myname" -> Unknown metric name
pmval: pmLookupName(myname): Unknown metric name