Srikanth Vavilapalli | 71aa28d | 2017-01-31 00:43:13 +0000 | [diff] [blame] | 1 | --- |
| 2 | sources: |
| 3 | - name: meter_source |
| 4 | interval: 600 |
| 5 | meters: |
| 6 | - "*" |
| 7 | sinks: |
| 8 | - meter_sink |
| 9 | - name: cpu_source |
| 10 | interval: 600 |
| 11 | meters: |
| 12 | - "cpu" |
| 13 | sinks: |
| 14 | - cpu_sink |
| 15 | - cpu_delta_sink |
| 16 | - name: disk_source |
| 17 | interval: 600 |
| 18 | meters: |
| 19 | - "disk.read.bytes" |
| 20 | - "disk.read.requests" |
| 21 | - "disk.write.bytes" |
| 22 | - "disk.write.requests" |
| 23 | - "disk.device.read.bytes" |
| 24 | - "disk.device.read.requests" |
| 25 | - "disk.device.write.bytes" |
| 26 | - "disk.device.write.requests" |
| 27 | sinks: |
| 28 | - disk_sink |
| 29 | - name: network_source |
| 30 | interval: 600 |
| 31 | meters: |
| 32 | - "network.incoming.bytes" |
| 33 | - "network.incoming.packets" |
| 34 | - "network.outgoing.bytes" |
| 35 | - "network.outgoing.packets" |
| 36 | sinks: |
| 37 | - network_sink |
| 38 | sinks: |
| 39 | - name: meter_sink |
| 40 | transformers: |
| 41 | publishers: |
| 42 | - direct:// |
| 43 | {% if ceilometer_enable_pub_sub %} |
| 44 | - kafka://localhost:9092?topic=ceilometer |
| 45 | {% endif %} |
| 46 | - name: cpu_sink |
| 47 | transformers: |
| 48 | - name: "rate_of_change" |
| 49 | parameters: |
| 50 | target: |
| 51 | name: "cpu_util" |
| 52 | unit: "%" |
| 53 | type: "gauge" |
| 54 | scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))" |
| 55 | publishers: |
| 56 | - direct:// |
| 57 | {% if ceilometer_enable_pub_sub %} |
| 58 | - kafka://localhost:9092?topic=ceilometer |
| 59 | {% endif %} |
| 60 | - name: cpu_delta_sink |
| 61 | transformers: |
| 62 | - name: "delta" |
| 63 | parameters: |
| 64 | target: |
| 65 | name: "cpu.delta" |
| 66 | growth_only: True |
| 67 | publishers: |
| 68 | - direct:// |
| 69 | {% if ceilometer_enable_pub_sub %} |
| 70 | - kafka://localhost:9092?topic=ceilometer |
| 71 | {% endif %} |
| 72 | - name: disk_sink |
| 73 | transformers: |
| 74 | - name: "rate_of_change" |
| 75 | parameters: |
| 76 | source: |
| 77 | map_from: |
| 78 | name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)" |
| 79 | unit: "(B|request)" |
| 80 | target: |
| 81 | map_to: |
| 82 | name: "\\1.\\2.\\3.rate" |
| 83 | unit: "\\1/s" |
| 84 | type: "gauge" |
| 85 | publishers: |
| 86 | - direct:// |
| 87 | {% if ceilometer_enable_pub_sub %} |
| 88 | - kafka://localhost:9092?topic=ceilometer |
| 89 | {% endif %} |
| 90 | - name: network_sink |
| 91 | transformers: |
| 92 | - name: "rate_of_change" |
| 93 | parameters: |
| 94 | source: |
| 95 | map_from: |
| 96 | name: "network\\.(incoming|outgoing)\\.(bytes|packets)" |
| 97 | unit: "(B|packet)" |
| 98 | target: |
| 99 | map_to: |
| 100 | name: "network.\\1.\\2.rate" |
| 101 | unit: "\\1/s" |
| 102 | type: "gauge" |
| 103 | publishers: |
| 104 | - direct:// |
| 105 | {% if ceilometer_enable_pub_sub %} |
| 106 | - kafka://localhost:9092?topic=ceilometer |
| 107 | {% endif %} |