0a0c7e12ef
slightly alter how config is loaded to transformers. Change-Id: I32bf34d270604e8c755160a7dac71e99a38f2a74
300 lines
5.8 KiB
Plaintext
300 lines
5.8 KiB
Plaintext
-
|
|
# meter name as seen in ceilometer
|
|
meter: instance
|
|
# type of resource it maps to (seen on sales order)
|
|
type: Virtual Machine
|
|
# which transformer to use
|
|
transformer: uptime
|
|
# what unit type is coming in via the meter
|
|
unit: second
|
|
metadata:
|
|
name:
|
|
sources:
|
|
# which keys to search for in the ceilometer entry metadata
|
|
# this can be more than one as metadata is inconsistent between
|
|
# source types
|
|
- display_name
|
|
availability zone:
|
|
sources:
|
|
- OS-EXT-AZ:availability_zone
|
|
host:
|
|
sources:
|
|
- node
|
|
- host
|
|
-
|
|
meter: ip.floating
|
|
service: n1.ipv4
|
|
type: Floating IP
|
|
transformer: max
|
|
unit: hour
|
|
metadata:
|
|
ip address:
|
|
sources:
|
|
- floating_ip_address
|
|
-
|
|
meter: volume.size
|
|
service: b1.standard
|
|
type: Volume
|
|
transformer: blockstoragemax
|
|
unit: gigabyte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- display_name
|
|
availability zone:
|
|
sources:
|
|
- availability_zone
|
|
-
|
|
meter: instance
|
|
service: b1.standard
|
|
type: Volume
|
|
transformer: fromimage
|
|
unit: gigabyte
|
|
# if true allows id pattern, and metadata patterns
|
|
transform_info: True
|
|
# allows us to put the id into a pattern,
|
|
# only if transform_info is true,
|
|
# such as to append something to it
|
|
res_id_template: "%s-root_disk"
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- display_name
|
|
template: "%s - root disk"
|
|
availability zone:
|
|
sources:
|
|
- availability_zone
|
|
-
|
|
meter: image.size
|
|
service: b1.standard
|
|
type: Image
|
|
transformer: max
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
- properties.image_name
|
|
-
|
|
meter: traffic.outbound.international
|
|
service: n1.international-out
|
|
type: Outbound International Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: traffic.inbound.international
|
|
service: n1.international-in
|
|
type: Inbound International Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: traffic.outbound.national
|
|
service: n1.national-out
|
|
type: Outbound National Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: traffic.inbound.national
|
|
service: n1.national-in
|
|
type: Inbound National Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: network.services.vpn
|
|
service: n1.vpn
|
|
type: VPN
|
|
transformer: networkservice
|
|
unit: hour
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
subnet:
|
|
sources:
|
|
- subnet_id
|
|
-
|
|
meter: network
|
|
service: n1.network
|
|
type: Network
|
|
transformer: max
|
|
unit: hour
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: router
|
|
service: n1.router
|
|
type: Router
|
|
transformer: max
|
|
unit: hour
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.containers.objects.size
|
|
service: o1.standard
|
|
type: Object Storage Container
|
|
transformer: objectstoragemax
|
|
unit: byte
|
|
# NOTE(flwang): Nothing in resource_metadata from ceilometer actually.
|
|
# But to avoid any unnecessary issue and keeping consistency. Just keep
|
|
# 'name' as default key.
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.objects.download.size.national
|
|
service: o1.national-out
|
|
type: Swift Outbound National Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.objects.upload.size.national
|
|
service: o1.national-in
|
|
type: Swift Inbound National Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.objects.download.size.international
|
|
service: o1.international-out
|
|
type: Swift Outbound International Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.objects.upload.size.international
|
|
service: o1.international-in
|
|
type: Swift Inbound International Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.objects.download.size.inter-region
|
|
service: o1.inter-region-out
|
|
type: Swift Outbound Inter-region Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.objects.upload.size.inter-region
|
|
service: o1.inter-region-in
|
|
type: Swift Inbound Inter-region Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.objects.download.size.internal
|
|
service: o1.internal-out
|
|
type: Swift Outbound Internal Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
-
|
|
meter: storage.objects.upload.size.internal
|
|
service: o1.internal-in
|
|
type: Swift Inbound Internal Traffic
|
|
transformer: sum
|
|
unit: byte
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
|
|
-
|
|
meter: cim.coe.cluster
|
|
service: p1.coe
|
|
type: COE Cluster
|
|
transformer: MagnumTransformer
|
|
unit: hour
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
|
|
-
|
|
meter: database.instance
|
|
type: Database Instance
|
|
transformer: databaseuptime
|
|
unit: second
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
datastore:
|
|
sources:
|
|
- datastore
|
|
|
|
-
|
|
meter: database.instance
|
|
service: b1.standard
|
|
type: Database Volume
|
|
transformer: databasevolumemax
|
|
unit: gigabyte
|
|
res_id_template: "%s-volume"
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
template: "%s - volume"
|
|
datastore:
|
|
sources:
|
|
- datastore
|
|
|
|
-
|
|
meter: database.instance
|
|
type: Database Management
|
|
transformer: databasemanagementuptime
|
|
transformer_config:
|
|
service_name: d1.management
|
|
unit: second
|
|
res_id_template: "%s-management"
|
|
metadata:
|
|
name:
|
|
sources:
|
|
- name
|
|
template: "%s - Management Fee"
|
|
datastore:
|
|
sources:
|
|
- datastore |