Browse Source

Remove transformers from pipeline.yaml

This change removes usage of transformers from pipeline.yaml because
support of transofermer was already removed from ceilometer[1].

[1] 9db5c6c9bf

Change-Id: Ibadafdf86f5ce581c9084a5e00784eefa7d28cab
changes/41/771441/1
Takashi Kajinami 5 months ago
parent
commit
5b8f5d0490
2 changed files with 6 additions and 81 deletions
  1. +6
    -0
      releasenotes/notes/bug-1912345-cd3db2d4c03bec17.yaml
  2. +0
    -81
      templates/pipeline.yaml.erb

+ 6
- 0
releasenotes/notes/bug-1912345-cd3db2d4c03bec17.yaml View File

@ -0,0 +1,6 @@
---
fixes:
- |
The template file which is used to create polling.yaml when manage_pipeline
is true was updated, and no longer includes usage of transfomer feature
because this feature was already removed from ceilometer.

+ 0
- 81
templates/pipeline.yaml.erb View File

@ -5,89 +5,8 @@ sources:
- "*"
sinks:
- meter_sink
- name: cpu_source
meters:
- "cpu"
sinks:
- cpu_sink
- cpu_delta_sink
- name: disk_source
meters:
- "disk.device.read.bytes"
- "disk.device.read.requests"
- "disk.device.write.bytes"
- "disk.device.write.requests"
sinks:
- disk_sink
- name: network_source
meters:
- "network.incoming.bytes"
- "network.incoming.packets"
- "network.outgoing.bytes"
- "network.outgoing.packets"
sinks:
- network_sink
sinks:
- name: meter_sink
transformers:
publishers:
<% @pipeline_publishers.each do |publisher| -%>
- <%= publisher %>
<% end -%>
- name: cpu_sink
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:
<% @pipeline_publishers.each do |publisher| -%>
- <%= publisher %>
<% end -%>
- name: cpu_delta_sink
transformers:
- name: "delta"
parameters:
target:
name: "cpu.delta"
growth_only: True
publishers:
<% @pipeline_publishers.each do |publisher| -%>
- <%= publisher %>
<% end -%>
- name: disk_sink
transformers:
- name: "rate_of_change"
parameters:
source:
map_from:
name: "disk\\.device\\.(read|write)\\.(bytes|requests)"
unit: "(B|request)"
target:
map_to:
name: "disk.device.\\1.\\2.rate"
unit: "\\1/s"
type: "gauge"
publishers:
<% @pipeline_publishers.each do |publisher| -%>
- <%= publisher %>
<% end -%>
- name: network_sink
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:
<% @pipeline_publishers.each do |publisher| -%>
- <%= publisher %>


Loading…
Cancel
Save