Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angristan/ansible-telegraf
Ansible role for Telegraf
https://github.com/angristan/ansible-telegraf
ansible debian influxdata telegraf ubuntu
Last synced: 25 days ago
JSON representation
Ansible role for Telegraf
- Host: GitHub
- URL: https://github.com/angristan/ansible-telegraf
- Owner: angristan
- License: mit
- Created: 2019-02-17T17:23:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-21T10:46:10.000Z (over 3 years ago)
- Last Synced: 2024-05-21T06:38:54.466Z (6 months ago)
- Topics: ansible, debian, influxdata, telegraf, ubuntu
- Language: HTML
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role for Telegraf
This is a simple role that will install Telegraf from the InfluxDB APT repo and configure it.
All the configuration is done with the `telegraf.conf.j2` template.
It's partly reusable for now, it's WIP.
## Sample playbook
```yaml
---- hosts: myhost
roles:
- name: telegraf
tags: telegraf
vars:
telegraf_output_type: influxdb
telegraf_output_host: "{{ influxdb_host }}"
telegraf_output_database: telegraf
telegraf_output_username: telegraf
telegraf_output_password: "{{ vault_telegraf_output_password }}"
telegraf_cpu_enabled: true
telegraf_mem_enabled: true
telegraf_dns_query_enabled: true
telegraf_dns_query_servers:
- 127.0.0.1
- 1.1.1.1
- 8.8.8.8
```