Add collectd post

This commit is contained in:
Felix Niederwanger 2022-06-29 15:24:49 +02:00
parent a38668d34a
commit 1c11190e72
Signed by: phoenix
GPG key ID: 31860289A704FB3C
2 changed files with 32 additions and 1 deletions

View file

@ -11,4 +11,5 @@ Here on this page a list of all available recipes is listed by category.
* [nginx](/posts/20210326-nginx/) - simple nginx configuration
* [php-fpm](/posts/20210326-php-fpm/) - Configure `php-fpm` in openSUSE Leap
* [PureFTPd](/posts/20210326-pureftpd/) - Setting up a `ftp` server using `pureftpd`
* [NEXT](/posts/20210326-next/) - Ansible role for setting up a PXE boot server
* [NEXT](/posts/20210326-next/) - Ansible role for setting up a PXE boot server
* [collectd](/posts/20220629-collectd/) - Ansible role for configuring `collectd`

View file

@ -0,0 +1,30 @@
---
title: "Ansible collectd"
author: "phoenix"
date: 2022-06-29T15:16:39+02:00
---
The [geekoops-collectd role](https://github.com/GeekOops/geekoops-collectd) is an Ansible role to install and configure `collectd` on an openSUSE Leap server. The role contains many configuration parameter with which you can enable a large set of [collectd plugins](https://www.collectd.org/wiki/index.php/Table_of_Plugins).
Currently the plugin supports pushing to an InfluxDB server or setting up a prometheus webserver for metrics scraping.
Most common plugins have been considered for the role, but the state is not yet complete. If you miss a certain plugin, feel free to [create a pull request](https://github.com/GeekOops/geekoops-collectd/pulls) or [report it as an issue](https://github.com/GeekOops/geekoops-collectd/issues).
# Example
The following example enables collectd on the `jellyfish` server and pushed the metrics to the InfluxDB host on 192.168.122.3. In addition to the default plugins (cpu, uptime, load, memory, swap) we also want to report metrics from `df` about the disk stats, from the local APC, additional vmem information and the `hddtemp` stats.
```yaml
---
- hosts: jellyfish
user: root
roles:
- role: geekoops-collectd
vars:
influx_host: "192.168.122.3"
enable_df: true
enable_apcups: true
enable_vmem: true
enable_hddtemp: true
```