meitric-list command cannot get all metrics with monasca-api python implementation

Bug #1439055 reported by Liusheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Monasca
Fix Committed
Undecided
Liusheng

Bug Description

I have installed monasca, and used monasca-api python implementation, after I handled all config issues (it is not easy :( ), the monasca metric-list just get 'io.errors_sec ' and 'monasca.thread_count' metric, like this:

root@monasca:/var/log/monasca/agent# monasca metric-list
+-----------------------+---------------------------------------------------+
| name | dimensions |
+-----------------------+---------------------------------------------------+
| io.errors_sec | service: monitoring |
| | zone: nova |
| | resource_id: 8d34d5ba-d3af-4801-8e41-21dba5e0edf8 |
| | hostname: ls_vm |
| | component: vm |
| | device: hdd |
| monasca.emit_time_sec | hostname: monasca |
| | component: monasca-agent |
| | service: monitoring |
| monasca.thread_count | hostname: monasca |
| | component: monasca-agent |
| | service: monitoring |
+-----------------------+---------------------------------------------------+

I have checked the monasca-api python code and found that there is a python error /monasca/common/messaging/message_formats/reference/metrics.py

Liusheng (liusheng)
Changed in monasca:
assignee: nobody → Liusheng (liusheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to monasca-api (master)

Fix proposed to branch: master
Review: https://review.openstack.org/169673

Changed in monasca:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to monasca-api (master)

Reviewed: https://review.openstack.org/169673
Committed: https://git.openstack.org/cgit/stackforge/monasca-api/commit/?id=799ed61e049da558f2fd87db8ef3bf0ad888681c
Submitter: Jenkins
Branch: master

commit 799ed61e049da558f2fd87db8ef3bf0ad888681c
Author: liu-sheng <email address hidden>
Date: Wed Apr 1 16:39:26 2015 +0800

    Correct the 'reference' format transform method

    Currently, the 'reference' format transform method will traversal the
    metrics list and reconstruct every item of the list to add tenant_id and
    region info, but new transformed metrics list will use the reference
    of the local dict variable "transformed_metric", that will lead that all
    the items of the transformed metrics list be the same value.

    Change-Id: Id7f4e18ca3ae0fa93cdafe0d63b7e90c96ce4b28
    Closes-bug: #1439055

Changed in monasca:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.