rdudyala | 996d70b | 2016-10-13 17:40:55 +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 | - name: disk_source |
| 16 | interval: 600 |
| 17 | meters: |
| 18 | - "disk.read.bytes" |
| 19 | - "disk.read.requests" |
| 20 | - "disk.write.bytes" |
| 21 | - "disk.write.requests" |
| 22 | - "disk.device.read.bytes" |
| 23 | - "disk.device.read.requests" |
| 24 | - "disk.device.write.bytes" |
| 25 | - "disk.device.write.requests" |
| 26 | sinks: |
| 27 | - disk_sink |
| 28 | - name: network_source |
| 29 | interval: 600 |
| 30 | meters: |
| 31 | - "network.incoming.bytes" |
| 32 | - "network.incoming.packets" |
| 33 | - "network.outgoing.bytes" |
| 34 | - "network.outgoing.packets" |
| 35 | sinks: |
| 36 | - network_sink |
| 37 | {% if onos %} |
| 38 | - name: sdn_source1 |
| 39 | interval: 600 |
| 40 | meters: |
| 41 | - "switch" |
| 42 | - "switch.*" |
| 43 | resources: {{ new_line }} |
| 44 | {%- for urls in onos_endpoints %} |
| 45 | - {{ urls }} {{ new_line}} |
| 46 | {%- if loop.last -%} |
| 47 | {{ new_tab }}sinks: |
| 48 | - sdn_sink |
| 49 | {%- endif -%} |
| 50 | {%- endfor -%} |
| 51 | {% endif %} |
| 52 | sinks: |
| 53 | - name: meter_sink |
| 54 | transformers: |
| 55 | publishers: |
| 56 | - notifier:// |
| 57 | {% if openstack %} |
| 58 | - udp://{{ listen_ip_addr }}:{{ port_number }} |
| 59 | {% endif %} |
| 60 | - name: cpu_sink |
| 61 | transformers: |
| 62 | - name: "rate_of_change" |
| 63 | parameters: |
| 64 | target: |
| 65 | name: "cpu_util" |
| 66 | unit: "%" |
| 67 | type: "gauge" |
| 68 | scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))" |
| 69 | publishers: |
| 70 | - notifier:// |
| 71 | {% if openstack %} |
| 72 | - udp://{{ listen_ip_addr }}:4455 |
| 73 | {% endif %} |
| 74 | - name: disk_sink |
| 75 | transformers: |
| 76 | - name: "rate_of_change" |
| 77 | parameters: |
| 78 | source: |
| 79 | map_from: |
| 80 | name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)" |
| 81 | unit: "(B|request)" |
| 82 | target: |
| 83 | map_to: |
| 84 | name: "\\1.\\2.\\3.rate" |
| 85 | unit: "\\1/s" |
| 86 | type: "gauge" |
| 87 | publishers: |
| 88 | - notifier:// |
| 89 | - name: network_sink |
| 90 | transformers: |
| 91 | - name: "rate_of_change" |
| 92 | parameters: |
| 93 | source: |
| 94 | map_from: |
| 95 | name: "network\\.(incoming|outgoing)\\.(bytes|packets)" |
| 96 | unit: "(B|packet)" |
| 97 | target: |
| 98 | map_to: |
| 99 | name: "network.\\1.\\2.rate" |
| 100 | unit: "\\1/s" |
| 101 | type: "gauge" |
| 102 | publishers: |
| 103 | - notifier:// |
| 104 | {% if onos %} |
| 105 | - name: sdn_sink |
| 106 | transformers: |
| 107 | publishers: |
| 108 | - notifier:// |
| 109 | - {{ onos_target }} |
| 110 | {% endif %} |