mirror of
https://github.com/GeekOops/doc.git
synced 2024-05-20 05:12:21 +00:00
commit
c879842a05
|
@ -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`
|
||||
|
|
30
content/posts/20220629-collectd.md
Normal file
30
content/posts/20220629-collectd.md
Normal 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
|
||||
```
|
Loading…
Reference in a new issue