aboutsummaryrefslogtreecommitdiffstats
path: root/conf/05_collector.conf
blob: 882ef414963fd324a1c405ec7a1de3312cc71cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Copyright 2015-2018 Intel Corporation, Spirent Communications
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# ############################
# Collector configuration
# ############################

COLLECTOR = 'Pidstat'
COLLECTOR_DIR = os.path.join(ROOT_DIR, 'tools/collectors')

# processes to be monitored by pidstat
PIDSTAT_MONITOR = ['ovs-vswitchd', 'ovsdb-server', 'qemu-system-x86_64', 'vpp']

# options which will be passed to pidstat
PIDSTAT_OPTIONS = '-dur'

# sampling interval used by pidstat to collect statistics
PIDSTAT_SAMPLE_INTERVAL = 1

# prefix of pidstat's log file; separate log file is created
# for each testcase in the directory with results
LOG_FILE_PIDSTAT = 'pidstat'

##########################################
# Collectd Specific configuration
##########################################
COLLECTD_IP = "127.0.0.1"
COLLECTD_PORT = 25826
COLLECTD_SECURITY_LEVEL = 0
COLLECTD_AUTH_FILE = ''
LOG_FILE_COLLECTD = 'collectd'

# Configure filters - Interested (KEYS), Not-Interested (XKEYS)
COLLECTD_CPU_KEYS = ['system', 'idle']
COLLECTD_PROCESSES_KEYS = ['user', 'system']
COLLECTD_INTERFACE_KEYS = ['dropped']
COLLECTD_OVSSTAT_KEYS = ['dropped', 'broadcast']
COLLECTD_DPDKSTAT_KEYS = ['dropped']
COLLECTD_INTELRDT_KEYS = ['llc']

# Interface types to exclude
COLLECTD_INTERFACE_XKEYS = ['docker', 'lo']
# Core-Ids to Exclude from
# Provide individual core-ids or range of core-ids.
# The range is specified using '-'
COLLECTD_INTELRDT_XKEYS = [ ]

###############################################
# Multi Command Collector Configurations
###############################################
MC_COLLECTD_CSV = '/tmp/csv/'
MC_COLLECTD_CMD = '/opt/collectd/sbin/collectd'
MC_PROX_HOME = '/home/opnfv/irq/'
MC_PROX_CMD = './runrapid.py'
MC_PROX_OUT = 'RUNirq.irq.log'
MC_CRON_OUT = '/tmp/ovs-cores.log'
MC_BEAT_CFILE = '/etc/filebeat/filebeat.yml'

###############################################
# Cadvisor Specific configuration
###############################################

LOG_FILE_CADVISOR = 'cadvisor'
CADVISOR_STORAGE_DRIVER = 'stdout,influxdb'
# ip:port of influxdb
CADVISOR_STORAGE_HOST = '10.10.120.22:8086'
CADVISOR_DRIVER_DB = '_internal'
# names of all containers to calcualte results
#CADVISOR_CONTAINERS = ['container1name','container2name']
CADVISOR_CONTAINERS = []