deb-ceilometer/etc/ceilometer/deprecated_pipeline.yaml
liu-sheng acfcb91186 Add per device rate metrics for instances
This change add pipline configuration support to gether per device
rate metrics for instance. The per device rate metrics for instances
is transform from the metrics of per devices for instances by adding
metrics to disk_pipline in pipline cfg. These metrics will be independent
of the support of per devices rate metrics provided by inspector.

This thange will add the following metrics:
  - "disk.device.read.bytes.rate"
  - "disk.device.read.requests.rate"
  - "disk.device.write.bytes.rate"
  - "disk.device.write.requests.rate"

Change-Id: I908ab40cc77966238944060e33603c5f4c440634
2014-10-30 23:14:59 +08:00

74 lines
1.9 KiB
YAML

---
-
name: meter_pipeline
interval: 600
meters:
- "*"
resources:
transformers:
publishers:
- rpc://
-
name: cpu_pipeline
interval: 600
meters:
- "cpu"
transformers:
- name: "rate_of_change"
parameters:
target:
name: "cpu_util"
unit: "%"
type: "gauge"
scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
publishers:
- rpc://
-
name: disk_pipeline
interval: 600
meters:
- "disk.read.bytes"
- "disk.read.requests"
- "disk.write.bytes"
- "disk.write.requests"
- "disk.device.read.bytes"
- "disk.device.read.requests"
- "disk.device.write.bytes"
- "disk.device.write.requests"
transformers:
- name: "rate_of_change"
parameters:
source:
map_from:
name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)"
unit: "(B|request)"
target:
map_to:
name: "\\1.\\2.\\3.rate"
unit: "\\1/s"
type: "gauge"
publishers:
- rpc://
-
name: network_pipeline
interval: 600
meters:
- "network.incoming.bytes"
- "network.incoming.packets"
- "network.outgoing.bytes"
- "network.outgoing.packets"
transformers:
- name: "rate_of_change"
parameters:
source:
map_from:
name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
unit: "(B|packet)"
target:
map_to:
name: "network.\\1.\\2.rate"
unit: "\\1/s"
type: "gauge"
publishers:
- rpc://