Skip to content

Telegraf GeoIP plugin role for Ansible

Notifications You must be signed in to change notification settings

n1k0r/ansible-role-telegraf-geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Telegraf GeoIP plugin role for Ansible

Variables

telegraf_geoip:
  config: geoip.conf.j2
  db_version: 2021.08.07 # latest if not specified

db_version key have to refer to release tag from https://github.com/P3TERX/GeoLite.mmdb/releases

Plugin config have to contain path to DB:

[[processors.geoip]]
db_path = "{{ telegraf_geoip_db_path }}"

Other plugin configuration options described here: https://github.com/a-bali/telegraf-geoip#configuration

Plugin loaded with such Telegraf block:

[[processors.execd]]
command = {{ telegraf_geoip_command }}