blob: 4cf22999c748056449d99d56977399e263bba14a [file] [log] [blame]
Matteo Scandoloeb0d11c2017-08-08 13:05:26 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
rdudyalab086cf32016-08-11 00:07:45 -040017---
18sources:
19 - name: all_meters
20 interval: 600
21 meters:
22 - "*"
23 - "!switch"
24 - "!switch.*"
25 - "!vcpe"
26 - "!vcpe.*"
27 - "!cpu"
28 - "!cpu_util"
29 - "!instance"
30 - "!network.incoming.bytes"
31 - "!network.incoming.packets"
32 - "!network.outgoing.bytes"
33 - "!network.outgoing.packets"
34 sinks:
35 - all_meters_sink
36 - name: sdn_source1
37 interval: 600
38 meters:
39 - "switch"
40 - "switch.*"
41 resources:
42 - onos://10.11.10.60:8181?auth=basic&user=onos&password=rocks&scheme=http
43 - onos://10.11.10.61:8181?auth=basic&user=onos&password=rocks&scheme=http
44 sinks:
45 - sdn_sink
46 - name: vcpe_source
47 interval: 600
48 meters:
49 - "vcpe"
50 - "vcpe.*"
51 sinks:
52 - vcpe_sink
53 - name: memory_source
54 interval: 600
55 meters:
56 - "memory"
57 sinks:
58 - memory_sink
59 - name: cpu_source
60 interval: 600
61 meters:
62 - "cpu"
63 sinks:
64 - cpu_sink
65 - name: cpu_util_source
66 interval: 600
67 meters:
68 - "cpu_util"
69 sinks:
70 - cpu_util_sink
71 - name: compute_instance_meters
72 interval: 600
73 meters:
74 - "instance"
75 sinks:
76 - compute_sink
77 - name: network_source
78 interval: 600
79 meters:
80 - "network.incoming.bytes"
81 - "network.incoming.packets"
82 - "network.outgoing.bytes"
83 - "network.outgoing.packets"
84 sinks:
85 - network_sink
86sinks:
87 - name: all_meters_sink
88 transformers:
89 publishers:
90 - notifier://
91 - name: sdn_sink
92 transformers:
93 publishers:
94 - notifier://
95 - name: vcpe_sink
96 transformers:
97 publishers:
98 - notifier://
99 - name: memory_sink
100 transformers:
101 publishers:
102 - notifier://
103 - name: cpu_sink
104 transformers:
105 - name: "rate_of_change"
106 parameters:
107 target:
108 name: "cpu_util"
109 unit: "%"
110 type: "gauge"
111 scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
112 publishers:
113 - notifier://
114 - name: cpu_util_sink
115 transformers:
116 publishers:
117 - notifier://
118 - name: compute_sink
119 publishers:
120 - notifier://
121
122 - name: network_sink
123 transformers:
124 - name: "rate_of_change"
125 parameters:
126 source:
127 map_from:
128 name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
129 unit: "(B|packet)"
130 target:
131 map_to:
132 name: "network.\\1.\\2.rate"
133 unit: "\\1/s"
134 type: "gauge"
135 publishers:
136 - notifier://