2015-12-01 12:54:32 |
Jean-Emile DARTOIS |
description |
Querying compute.node.* requires some additional information in the cluster data model.
We need to add the hostname in the data model.
metric:
- name: 'compute.node.cpu.idle.percent'
event_type: 'compute.metrics.update'
type: 'gauge'
unit: 'percent'
volume: payload.metrics[?(@.name='cpu.idle.percent')].value * 100
resource_id: $.payload.host + "_" + $.payload.hostname |
Querying compute.node.* in Ceilometer requires some additional information in the cluster data model in order to build the resource_id.
We need to add the hostname in the data model.
e.g : Nova-Ceilometer :
metric:
- name: 'compute.node.cpu.idle.percent'
event_type: 'compute.metrics.update'
type: 'gauge'
unit: 'percent'
volume: payload.metrics[?(@.name='cpu.idle.percent')].value * 100
resource_id: $.payload.host + "_" + $.payload.hostname |
|