blob: cb6c213ea4a8922a16b8de08ab6732d2667d854c [file] [log] [blame]
rdudyalab086cf32016-08-11 00:07:45 -04001---
2sources:
3 - name: all_meters
4 interval: 600
5 meters:
6 - "*"
7 - "!switch"
8 - "!switch.*"
9 - "!vcpe"
10 - "!vcpe.*"
11 - "!cpu"
12 - "!cpu_util"
13 - "!instance"
14 - "!network.incoming.bytes"
15 - "!network.incoming.packets"
16 - "!network.outgoing.bytes"
17 - "!network.outgoing.packets"
18 sinks:
19 - all_meters_sink
20 - name: sdn_source1
21 interval: 600
22 meters:
23 - "switch"
24 - "switch.*"
25 resources:
26 - onos://10.11.10.60:8181?auth=basic&user=onos&password=rocks&scheme=http
27 - onos://10.11.10.61:8181?auth=basic&user=onos&password=rocks&scheme=http
28 sinks:
29 - sdn_sink
30 - name: vcpe_source
31 interval: 600
32 meters:
33 - "vcpe"
34 - "vcpe.*"
35 sinks:
36 - vcpe_sink
37 - name: memory_source
38 interval: 600
39 meters:
40 - "memory"
41 sinks:
42 - memory_sink
43 - name: cpu_source
44 interval: 600
45 meters:
46 - "cpu"
47 sinks:
48 - cpu_sink
49 - name: cpu_util_source
50 interval: 600
51 meters:
52 - "cpu_util"
53 sinks:
54 - cpu_util_sink
55 - name: compute_instance_meters
56 interval: 600
57 meters:
58 - "instance"
59 sinks:
60 - compute_sink
61 - name: network_source
62 interval: 600
63 meters:
64 - "network.incoming.bytes"
65 - "network.incoming.packets"
66 - "network.outgoing.bytes"
67 - "network.outgoing.packets"
68 sinks:
69 - network_sink
70sinks:
71 - name: all_meters_sink
72 transformers:
73 publishers:
74 - notifier://
75 - name: sdn_sink
76 transformers:
77 publishers:
78 - notifier://
79 - name: vcpe_sink
80 transformers:
81 publishers:
82 - notifier://
83 - name: memory_sink
84 transformers:
85 publishers:
86 - notifier://
87 - name: cpu_sink
88 transformers:
89 - name: "rate_of_change"
90 parameters:
91 target:
92 name: "cpu_util"
93 unit: "%"
94 type: "gauge"
95 scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
96 publishers:
97 - notifier://
98 - name: cpu_util_sink
99 transformers:
100 publishers:
101 - notifier://
102 - name: compute_sink
103 publishers:
104 - notifier://
105
106 - name: network_sink
107 transformers:
108 - name: "rate_of_change"
109 parameters:
110 source:
111 map_from:
112 name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
113 unit: "(B|packet)"
114 target:
115 map_to:
116 name: "network.\\1.\\2.rate"
117 unit: "\\1/s"
118 type: "gauge"
119 publishers:
120 - notifier://