Collecting host info for instance
Currently the mapping to collect host info of instance is not correct, and unfortunately, we can only get a hexdigest of project_id + host_name. But we can get the correct host name by using the same algorithm when doing billing. Closes-Bug: #1665191 Change-Id: I0585c1e9a01250e6b34f3c1d060b76db34fcd6bf
This commit is contained in:
parent
6d1dec6cd9
commit
b2e57549e9
@ -2,9 +2,9 @@
|
|||||||
main:
|
main:
|
||||||
region: nz_wlg_2
|
region: nz_wlg_2
|
||||||
# timezone is unused at this time
|
# timezone is unused at this time
|
||||||
timezone: Pacific/Auckland
|
timezone: Pacific/Auckland
|
||||||
database_uri: postgres://admin:password@localhost:5432/billing
|
database_uri: postgres://admin:password@localhost:5432/billing
|
||||||
trust_sources:
|
trust_sources:
|
||||||
- openstack
|
- openstack
|
||||||
- .{32}:TrafficAccounting
|
- .{32}:TrafficAccounting
|
||||||
log_file: logs/billing.log
|
log_file: logs/billing.log
|
||||||
@ -41,7 +41,7 @@ collection:
|
|||||||
# which transformer to use
|
# which transformer to use
|
||||||
transformer: InstanceUptime
|
transformer: InstanceUptime
|
||||||
# what unit type is coming in via the meter
|
# what unit type is coming in via the meter
|
||||||
unit: second
|
unit: second
|
||||||
metadata:
|
metadata:
|
||||||
name:
|
name:
|
||||||
sources:
|
sources:
|
||||||
@ -54,7 +54,7 @@ collection:
|
|||||||
- OS-EXT-AZ:availability_zone
|
- OS-EXT-AZ:availability_zone
|
||||||
host:
|
host:
|
||||||
sources:
|
sources:
|
||||||
- instance_host
|
- host
|
||||||
-
|
-
|
||||||
meter: ip.floating
|
meter: ip.floating
|
||||||
service: n1.ipv4
|
service: n1.ipv4
|
||||||
@ -164,7 +164,7 @@ collection:
|
|||||||
# transformer configs
|
# transformer configs
|
||||||
transformers:
|
transformers:
|
||||||
uptime:
|
uptime:
|
||||||
# states marked as "billable" for VMs.
|
# states marked as "billable" for VMs.
|
||||||
tracked_states:
|
tracked_states:
|
||||||
- active
|
- active
|
||||||
- paused
|
- paused
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
- OS-EXT-AZ:availability_zone
|
- OS-EXT-AZ:availability_zone
|
||||||
host:
|
host:
|
||||||
sources:
|
sources:
|
||||||
- instance_host
|
- host
|
||||||
-
|
-
|
||||||
meter: ip.floating
|
meter: ip.floating
|
||||||
service: n1.ipv4
|
service: n1.ipv4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user