blob: cb6c213ea4a8922a16b8de08ab6732d2667d854c [file] [log] [blame]
---
sources:
- name: all_meters
interval: 600
meters:
- "*"
- "!switch"
- "!switch.*"
- "!vcpe"
- "!vcpe.*"
- "!cpu"
- "!cpu_util"
- "!instance"
- "!network.incoming.bytes"
- "!network.incoming.packets"
- "!network.outgoing.bytes"
- "!network.outgoing.packets"
sinks:
- all_meters_sink
- name: sdn_source1
interval: 600
meters:
- "switch"
- "switch.*"
resources:
- onos://10.11.10.60:8181?auth=basic&user=onos&password=rocks&scheme=http
- onos://10.11.10.61:8181?auth=basic&user=onos&password=rocks&scheme=http
sinks:
- sdn_sink
- name: vcpe_source
interval: 600
meters:
- "vcpe"
- "vcpe.*"
sinks:
- vcpe_sink
- name: memory_source
interval: 600
meters:
- "memory"
sinks:
- memory_sink
- name: cpu_source
interval: 600
meters:
- "cpu"
sinks:
- cpu_sink
- name: cpu_util_source
interval: 600
meters:
- "cpu_util"
sinks:
- cpu_util_sink
- name: compute_instance_meters
interval: 600
meters:
- "instance"
sinks:
- compute_sink
- name: network_source
interval: 600
meters:
- "network.incoming.bytes"
- "network.incoming.packets"
- "network.outgoing.bytes"
- "network.outgoing.packets"
sinks:
- network_sink
sinks:
- name: all_meters_sink
transformers:
publishers:
- notifier://
- name: sdn_sink
transformers:
publishers:
- notifier://
- name: vcpe_sink
transformers:
publishers:
- notifier://
- name: memory_sink
transformers:
publishers:
- notifier://
- name: cpu_sink
transformers:
- name: "rate_of_change"
parameters:
target:
name: "cpu_util"
unit: "%"
type: "gauge"
scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
publishers:
- notifier://
- name: cpu_util_sink
transformers:
publishers:
- notifier://
- name: compute_sink
publishers:
- notifier://
- name: network_sink
transformers:
- name: "rate_of_change"
parameters:
source:
map_from:
name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
unit: "(B|packet)"
target:
map_to:
name: "network.\\1.\\2.rate"
unit: "\\1/s"
type: "gauge"
publishers:
- notifier://