blob: 836f9b767f392046ecaedb87016ea6594d40060c [file] [log] [blame]
Matteo Scandoloeb0d11c2017-08-08 13:05:26 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Srikanth Vavilapalli71aa28d2017-01-31 00:43:13 +000019---
20sources:
21 - name: meter_source
22 interval: 600
23 meters:
24 - "*"
25 sinks:
26 - meter_sink
27 - name: cpu_source
28 interval: 600
29 meters:
30 - "cpu"
31 sinks:
32 - cpu_sink
33 - cpu_delta_sink
34 - name: disk_source
35 interval: 600
36 meters:
37 - "disk.read.bytes"
38 - "disk.read.requests"
39 - "disk.write.bytes"
40 - "disk.write.requests"
41 - "disk.device.read.bytes"
42 - "disk.device.read.requests"
43 - "disk.device.write.bytes"
44 - "disk.device.write.requests"
45 sinks:
46 - disk_sink
47 - name: network_source
48 interval: 600
49 meters:
50 - "network.incoming.bytes"
51 - "network.incoming.packets"
52 - "network.outgoing.bytes"
53 - "network.outgoing.packets"
54 sinks:
55 - network_sink
56sinks:
57 - name: meter_sink
58 transformers:
59 publishers:
60 - direct://
61{% if ceilometer_enable_pub_sub %}
62 - kafka://localhost:9092?topic=ceilometer
63{% endif %}
64 - name: cpu_sink
65 transformers:
66 - name: "rate_of_change"
67 parameters:
68 target:
69 name: "cpu_util"
70 unit: "%"
71 type: "gauge"
72 scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
73 publishers:
74 - direct://
75{% if ceilometer_enable_pub_sub %}
76 - kafka://localhost:9092?topic=ceilometer
77{% endif %}
78 - name: cpu_delta_sink
79 transformers:
80 - name: "delta"
81 parameters:
82 target:
83 name: "cpu.delta"
84 growth_only: True
85 publishers:
86 - direct://
87{% if ceilometer_enable_pub_sub %}
88 - kafka://localhost:9092?topic=ceilometer
89{% endif %}
90 - name: disk_sink
91 transformers:
92 - name: "rate_of_change"
93 parameters:
94 source:
95 map_from:
96 name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)"
97 unit: "(B|request)"
98 target:
99 map_to:
100 name: "\\1.\\2.\\3.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 %}
108 - name: network_sink
109 transformers:
110 - name: "rate_of_change"
111 parameters:
112 source:
113 map_from:
114 name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
115 unit: "(B|packet)"
116 target:
117 map_to:
118 name: "network.\\1.\\2.rate"
119 unit: "\\1/s"
120 type: "gauge"
121 publishers:
122 - direct://
123{% if ceilometer_enable_pub_sub %}
124 - kafka://localhost:9092?topic=ceilometer
125{% endif %}