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:
|
||||
region: nz_wlg_2
|
||||
# timezone is unused at this time
|
||||
timezone: Pacific/Auckland
|
||||
timezone: Pacific/Auckland
|
||||
database_uri: postgres://admin:password@localhost:5432/billing
|
||||
trust_sources:
|
||||
trust_sources:
|
||||
- openstack
|
||||
- .{32}:TrafficAccounting
|
||||
log_file: logs/billing.log
|
||||
@ -41,7 +41,7 @@ collection:
|
||||
# which transformer to use
|
||||
transformer: InstanceUptime
|
||||
# what unit type is coming in via the meter
|
||||
unit: second
|
||||
unit: second
|
||||
metadata:
|
||||
name:
|
||||
sources:
|
||||
@ -54,7 +54,7 @@ collection:
|
||||
- OS-EXT-AZ:availability_zone
|
||||
host:
|
||||
sources:
|
||||
- instance_host
|
||||
- host
|
||||
-
|
||||
meter: ip.floating
|
||||
service: n1.ipv4
|
||||
@ -164,7 +164,7 @@ collection:
|
||||
# transformer configs
|
||||
transformers:
|
||||
uptime:
|
||||
# states marked as "billable" for VMs.
|
||||
# states marked as "billable" for VMs.
|
||||
tracked_states:
|
||||
- active
|
||||
- paused
|
||||
|
@ -19,7 +19,7 @@
|
||||
- OS-EXT-AZ:availability_zone
|
||||
host:
|
||||
sources:
|
||||
- instance_host
|
||||
- host
|
||||
-
|
||||
meter: ip.floating
|
||||
service: n1.ipv4
|
||||
|
Loading…
x
Reference in New Issue
Block a user