Skip to content

Commit

Permalink
fix gnocchi_resources mapping
Browse files Browse the repository at this point in the history
meters.yaml sets flavor_name and flavor_id under resource_metadata
instead of id and name under flavor key as polling does.

Change-Id: I328ca62a203f47cf8d0e05049723b914f378acd2
  • Loading branch information
chungg committed Mar 14, 2017
1 parent 6c97601 commit 7a0954e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ceilometer/dispatcher/data/gnocchi_resources.yaml
Expand Up @@ -68,8 +68,8 @@ resources:
host: resource_metadata.(instance_host|host)
image_ref: resource_metadata.image_ref
display_name: resource_metadata.display_name
flavor_id: resource_metadata.(instance_flavor_id|(flavor.id))
flavor_name: resource_metadata.(instance_type|(flavor.name))
flavor_id: resource_metadata.(instance_flavor_id|(flavor.id)|flavor_id)
flavor_name: resource_metadata.(instance_type|(flavor.name)|flavor_name)
server_group: resource_metadata.user_metadata.server_group
event_delete: compute.instance.delete.start
event_attributes:
Expand Down

0 comments on commit 7a0954e

Please sign in to comment.