Skip to content

Commit f95b0f8

Browse files
committed
Working Cloudkitty config.
1 parent 0dac19c commit f95b0f8

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

ansible/group_vars/all/openstack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ratings_environment: []
6666
# Example of the mappings and their fields can be found below,
6767
# however for more information please refer to the README.md file.
6868
#
69-
#ratings_hashmap_field_mappings:
69+
ratings_hashmap_field_mappings: []
7070
# - service: SERVICE_NAME
7171
# name: FIELD_NAME
7272
# mappings:
@@ -78,7 +78,7 @@ ratings_environment: []
7878
# Much like the field mappings above, the service mappings are a list of
7979
# dictionaries, however these are not associated with a field.
8080
#
81-
#ratings_hashmap_service_mappings:
81+
ratings_hashmap_service_mappings: []
8282
# - service: SERVICE_NAME
8383
# cost: MAPPING_COST
8484
# group: MAPPING_GROUP

etc/openstack-config/openstack-config.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@
9999
###############################################################################
100100
# Configuration variables for a Cloudkitty ratings service deployment.
101101

102+
#
103+
#
104+
#
105+
102106
# File path or URL containing Python upper constraints.
103107
#
104108
# ratings_upper_constraints_file: /path/to/upper_constraints_file
@@ -118,11 +122,27 @@ ratings_hashmap_field_mappings:
118122
- service: instance
119123
name: flavor_id
120124
mappings:
121-
- value: small
125+
- value: '1' #tiny
122126
cost: 1.0
123127
group: instance_uptime_flavor_id
124128
type: flat
125-
- value: large
129+
- value: '2' #small
130+
cost: 2.0
131+
group: instance_uptime_flavor_id
132+
type: flat
133+
- value: '3' #medium
134+
cost: 3.0
135+
group: instance_uptime_flavor_id
136+
type: flat
137+
- value: '4' #large
138+
cost: 4.0
139+
group: instance_uptime_flavor_id
140+
type: flat
141+
- value: '5' #xlarge
142+
cost: 5.0
143+
group: instance_uptime_flavor_id
144+
type: flat
145+
- value: '6' #tiny 2
126146
cost: 2.0
127147
group: instance_uptime_flavor_id
128148
type: flat
@@ -131,11 +151,11 @@ ratings_hashmap_field_mappings:
131151
# Much like the field mappings above, the service mappings are a list of
132152
# dictionaries, however these are not associated with a field.
133153
#
134-
ratings_hashmap_service_mappings:
135-
- service: image.size
136-
cost: 0.1
137-
group: volume_ceph
138-
type: flat
154+
# ratings_hashmap_service_mappings:
155+
# - service: image.size
156+
# cost: 0.1
157+
# group: image_size
158+
# type: flat
139159

140160
###############################################################################
141161
# Dummy variable to allow Ansible to accept this file.

etc/openstack-config/openstack-config_template.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@
9999
###############################################################################
100100
# Configuration variables for a Cloudkitty ratings service deployment.
101101

102+
# # ### ####### ##### IN ORDER TO SUCCESSFULLY DEPLOY CLOUDKITTY
103+
# # # # # # # 'cloudkitty.conf' & 'metrics.yml' MUST BE
104+
# # # # # # ### PROVIDED ALONGSIDE THE FOLLOWING CONFIG.
105+
# # # # # # # MORE INFO CAN BE FOUND IN THE README.md
106+
# # ### # ##### 'stackhpc-kayobe-config' DOCS.
107+
102108
# File path or URL containing Python upper constraints.
103109
#
104110
#ratings_upper_constraints_file: /path/to/upper_constraints_file

0 commit comments

Comments
 (0)