chore: Remove telegraf
Replaced by Prometheus and Prometheus exporters. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
55ea541cbe
commit
ba11dcabb1
6 changed files with 0 additions and 164 deletions
|
@ -716,82 +716,6 @@ Used by
|
|||
[ansible.posix.authorized_keys](https://docs.ansible.com/ansible/latest/collections/ansible/posix/authorized_key_module.html)
|
||||
module.
|
||||
|
||||
## telegraf_influxdb_database
|
||||
|
||||
Name of the InfluxDB database used by telegraf to send metrics.
|
||||
|
||||
```yaml
|
||||
telegraf_influxdb_database: metrics
|
||||
```
|
||||
|
||||
## telegraf_influxdb_password
|
||||
|
||||
Password of the InfluxDB user used by telegraf to send metrics.
|
||||
|
||||
```yaml
|
||||
telegraf_influxdb_password: ***
|
||||
```
|
||||
|
||||
## telegraf_influxdb_urls
|
||||
|
||||
List of InfluxDB endpoints used by telegraf to send metrics.
|
||||
|
||||
```yaml
|
||||
telegraf_influxdb_urls:
|
||||
- https://192.168.0.1:8088
|
||||
```
|
||||
|
||||
## telegraf_influxdb_username
|
||||
|
||||
Name of the InfluxDB user used by telegraf to send metrics.
|
||||
|
||||
```yaml
|
||||
telegraf_influxdb_username: telegraf
|
||||
```
|
||||
|
||||
## telegraf_mqtt_consumer_password
|
||||
|
||||
Password used to authenticate to the MQTT broker for telegraf.
|
||||
|
||||
```yaml
|
||||
telegraf_mqtt_consumer_password: ***
|
||||
```
|
||||
|
||||
## telegraf_mqtt_consumer_servers
|
||||
|
||||
List of MQTT brokers for telegraf.
|
||||
|
||||
```yaml
|
||||
telegraf_mqtt_consumer_servers:
|
||||
- tcp://localhost:1883
|
||||
```
|
||||
|
||||
## telegraf_mqtt_consumer_topics
|
||||
|
||||
List of MQTT topics to consume for telegraf.
|
||||
|
||||
```yaml
|
||||
telegraf_mqtt_consumer_topics:
|
||||
- sensors/humidity
|
||||
- sensors/temperature
|
||||
```
|
||||
|
||||
## telegraf_mqtt_consumer_username
|
||||
|
||||
Name used to authenticate to the MQTT broker for telegraf.
|
||||
|
||||
```yaml
|
||||
telegraf_mqtt_consumer_username: telegraf
|
||||
```
|
||||
|
||||
## telegraf_ping_ip
|
||||
|
||||
IP address of the host to ping for latency metrics.
|
||||
|
||||
```yaml
|
||||
telegraf_ping_ip: 192.168.0.1
|
||||
```
|
||||
|
||||
## timezone
|
||||
|
||||
Alias of the time zone.
|
||||
|
|
3
main.yml
3
main.yml
|
@ -45,9 +45,6 @@
|
|||
- name: Configure serial2mqtt
|
||||
ansible.builtin.include_tasks: tasks/serial2mqtt.yml
|
||||
|
||||
- name: Configure telegraf
|
||||
ansible.builtin.include_tasks: tasks/telegraf.yml
|
||||
|
||||
- name: Configure vim
|
||||
ansible.builtin.include_tasks: tasks/vim.yml
|
||||
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
---
|
||||
- name: Configure telegraf repository
|
||||
ansible.builtin.template:
|
||||
src: telegraf/influxdata.list.j2
|
||||
dest: /etc/apt/sources.list.d/influxdata.list
|
||||
mode: '0644'
|
||||
|
||||
- name: Download influxdata APT key
|
||||
ansible.builtin.apt_key:
|
||||
url: https://repos.influxdata.com/influxdata-archive_compat.key
|
||||
state: present
|
||||
|
||||
- name: Install telegraf and dependencies
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- telegraf
|
||||
- lm-sensors
|
||||
update_cache: true
|
||||
|
||||
- name: Generate telegraf configurations
|
||||
ansible.builtin.template:
|
||||
src: "telegraf/{{ item }}.conf.j2"
|
||||
dest: "/etc/telegraf/telegraf.d/{{ item }}.conf"
|
||||
mode: '0640'
|
||||
owner: root
|
||||
group: telegraf
|
||||
loop:
|
||||
- inputs
|
||||
- output
|
||||
|
||||
- name: Restart telegraf service
|
||||
ansible.builtin.service:
|
||||
name: telegraf
|
||||
state: restarted
|
|
@ -1,2 +0,0 @@
|
|||
{{ ansible_managed | comment }}
|
||||
deb https://repos.influxdata.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
|
|
@ -1,39 +0,0 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
[[inputs.cpu]]
|
||||
percpu = false
|
||||
totalcpu = true
|
||||
collect_cpu_time = false
|
||||
report_active = false
|
||||
|
||||
[[inputs.disk]]
|
||||
mount_points = ["/", "/boot"]
|
||||
|
||||
[[inputs.diskio]]
|
||||
devices = ["mmcblk0"]
|
||||
|
||||
[[inputs.kernel]]
|
||||
[[inputs.mem]]
|
||||
[[inputs.processes]]
|
||||
[[inputs.swap]]
|
||||
[[inputs.system]]
|
||||
[[inputs.net]]
|
||||
interfaces = ["eth0", "tun0"]
|
||||
|
||||
[[inputs.sensors]]
|
||||
|
||||
[[inputs.ping]]
|
||||
urls = ["{{ telegraf_ping_ip }}"]
|
||||
count = 3
|
||||
ping_interval = 1.0
|
||||
timeout = 1.0
|
||||
|
||||
[[inputs.mqtt_consumer]]
|
||||
servers = {{ telegraf_mqtt_consumer_servers }}
|
||||
topics = {{ telegraf_mqtt_consumer_topics }}
|
||||
persistent_session = true
|
||||
client_id = "telegraf"
|
||||
data_format = "value"
|
||||
data_type = "float"
|
||||
username = "{{ telegraf_mqtt_consumer_username }}"
|
||||
password = "{{ telegraf_mqtt_consumer_password }}"
|
|
@ -1,10 +0,0 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
[[outputs.influxdb]]
|
||||
urls = {{ telegraf_influxdb_urls }}
|
||||
database = "{{ telegraf_influxdb_database }}"
|
||||
skip_database_creation = true
|
||||
username = "{{ telegraf_influxdb_username }}"
|
||||
password = "{{ telegraf_influxdb_password }}"
|
||||
insecure_skip_verify = true
|
||||
content_encoding = "gzip"
|
Loading…
Add table
Add a link
Reference in a new issue