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

Backport note:
This backport patch includes the subsequent change[2] to fix the wrong
file mentioned in the release note file.

[2] d27fbd3fed

Closes-Bug: #1912345
Change-Id: Ibadafdf86f5ce581c9084a5e00784eefa7d28cab
(cherry picked from commit 5b8f5d0490)
(cherry picked from commit 815d7033db)
(cherry picked from commit ed9563b63f)
changes/12/773212/1
Takashi Kajinami 4 months ago
parent
commit
5901c94b2c
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 pipeline.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