Skip to content

Commit bc8409d

Browse files
committed
Add three new keyword fields to the metric_desc.names properties
to support tool-power metrics collection: - endpoint: BMC endpoint identifier (IP/hostname) - sensor: Sensor name (e.g., power_envelope, soc_power) - metric: Metric type (e.g., consumed, capacity, limit, soc, envelope) These fields are added to the v8dev metric_desc definition in cdm.js. The v9dev metric_desc inherits these changes via deepClone so both versions receive the new fields.
1 parent 5bf6086 commit bc8409d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

queries/cdmq/cdm.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ indexDefs['v8dev']['metric_desc']['mappings']['properties']['metric_desc'] = {
234234
'engine-id': { type: 'keyword' },
235235
userenv: { type: 'keyword' },
236236
osruntime: { type: 'keyword' },
237+
endpoint: { type: 'keyword' },
237238
'endpoint-label': { type: 'keyword' },
238239
'hypervisor-host': { type: 'keyword' },
239240
'hosted-by': { type: 'keyword' },
@@ -267,6 +268,7 @@ indexDefs['v8dev']['metric_desc']['mappings']['properties']['metric_desc'] = {
267268
container: { type: 'keyword' },
268269
cgroup: { type: 'keyword' },
269270
parent: { type: 'keyword' },
271+
sensor: { type: 'keyword' },
270272
source: { type: 'keyword' },
271273
controller: { type: 'keyword' },
272274
pod: { type: 'keyword' },
@@ -292,6 +294,7 @@ indexDefs['v8dev']['metric_desc']['mappings']['properties']['metric_desc'] = {
292294
priority: { type: 'keyword' },
293295
reg14: { type: 'keyword' },
294296
metadata: { type: 'keyword' },
297+
metric: { type: 'keyword' },
295298
dp: { type: 'keyword' },
296299
flags: { type: 'keyword' },
297300
recirc_id: { type: 'keyword' },

0 commit comments

Comments
 (0)