This role installs the host-sflow agent for gathering and sending metrics using sFlow.
By default this role will install with DNS-SD off and require at least one collector configured. Read the host-sflow docs on how to use DNS-SD.
Requires:
- ansible >= 2.4
Minimal required variables:
hsflowd_url
: URL of the hsflowd package - See their github releases or build/provide your ownhsflowd_package_name
: Alternatively if a URL is not provided, will attempt to install from the target's available repos using this package namehsflowd_collectors
: A list of sflow collectors, at least one must be defined
See defaults/main.yml
for example variable usage based on sflow documentation examples to
configured additional modules.
None
Minimal required example:
- hosts: servers
tasks:
- import_role:
name: hsflowd
vars:
hsflowd_url: https://github.com/sflow/host-sflow/releases/download/v2.0.19-1/hsflowd-centos7-2.0.19-1.x86_64.rpm
hsflowd_collectors:
- ip: 10.100.12.13