Ansible role for the host-sflow agent
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:
Minimal required variables:
hsflowd_url
: URL of the hsflowd package - See their github releases or build/provide yourhsflowd_package_name
: Alternatively if a URL is not provided, will attempt to install from thehsflowd_collectors
: A list of sflow collectors, at least one must be definedSee 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