-
Notifications
You must be signed in to change notification settings - Fork 56
/
INSTALL.Docker
47 lines (32 loc) · 1.03 KB
/
INSTALL.Docker
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
This software is distributed under the following license:
http://sflow.net/license.html
Compile/install
===============
root> make FEATURES="DOCKER PCAP OVS"
root> make install
Edit /etc/hsflowd.conf for configuration, then:
root> service hsflowd start
Dependencies
============
You may need to install the libpcap-dev(el) package, and
if selinux is running you may also need to run:
root> audit2allow -a -M hsflowd
root> semodule -i hsflowd.pp
Traffic Monitoring
==================
If the linux-bridge is being used for networking (e.g. with NAT
networking or MACVLAN networking) then you can add a line like
this to /etc/hsflowd.conf:
pcap { dev = docker0 }
so that the traffic to and from the docker containers is
monitored with sFlow. Alternatively, if Open VSwitch is running,
adding:
ovs { }
will propagate your collector and sampling-rate information
to the switch via ovs-vsctl(1).
Packaging
=========
To build an rpm, try:
% make rpm FEATURES="DOCKER PCAP OVS"
To build a Debian package, try:
% make deb FEATURES="DOCKER PCAP OVS"