mash-playbook/docs/services/telegraf.md

27 lines
1.1 KiB
Markdown
Raw Normal View History

2023-06-29 10:46:34 +02:00
# Telegraf
[Telegraf](https://www.influxdata.com/) is a plugin-driven server agent for collecting & reporting metric, that this playbook can install, powered by the [mother-of-all-self-hosting/ansible-role-influxdb](https://github.com/mother-of-all-self-hosting/ansible-role-influxdb) Ansible role. It heavily depends on [InfluxDB](influxdb.md)
## Prerequisits
2023-06-30 09:01:57 +02:00
* A functioning [InfluxDB](influxdb.md) instance.
2023-06-29 10:46:34 +02:00
## Configuration
To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation](../installing.md) process:
2023-06-30 09:01:57 +02:00
This role depends on InfluxDB. You need to obtain the influx token and config link in from InfluxDB.
In your browser, visit the InfluxDB instance and go to **Load Data** -> **Telegraf**.
There you need to add a Telegraf configuration. You can now obtain these values from the setup instructions and paste them here.
2023-06-29 10:46:34 +02:00
```yaml
telegraf_enabled: true
telegraf_influx_token: SUPERSECRETTOKEN
telegraf_config_link: https://influxdb.example.org/api/v2/telegrafs/0123456789
```
## Usage
2023-06-30 09:01:57 +02:00
In your InfluxDB instance, configure the Telegraf plugins as you like.
2023-06-29 10:46:34 +02:00