0
Monitoring Linux services describes how the open source
Host sFlow agent exports metrics from services launched using systemd, the default service manager on most recent Linux distributions. In addition, the Host sFlow agent efficiently samples network traffic using Linux kernel capabilities:
PCAP/BPF, nflog, and ulog.
This article describes a recent extension to the Host sFlow
systemd module, mapping sampled traffic to the individual services the generate or consume them. The ability to color traffic by application greatly simplifies service discovery and service dependency mapping; making it easy to see how services communicate in a multi-tier application architecture.
The following
/etc/hsflowd.conf file configures the Host sFlow agent,
hsflowd, to sampling packets on interface
eth0, monitor
systemd services and mark the packet samples, and
track tcp performance:
sflow {
collector { ip = 10.0.0.70 }
pcap { dev = eth0 }
systemd { markTraffic = on }
tcp { }
}The diagram above illustrates how the Host sFlow agent is able to efficiently monitor and classify traffic. In this case both the Host sFlow agent and an Apache web server are are running as services managed by
systemd. A network connection , shown in
Continue reading