Commit Graph

111 Commits

Author SHA1 Message Date
Aurélien Bompard
cad444265d Collectd: only include .conf files in the config dir
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-07-03 10:38:57 +02:00
James Antill
45f22c0f64 collectd: Cleanup the task name.
Signed-off-by: James Antill <james@and.org>
2025-07-01 11:43:24 -04:00
James Antill
57e51802a8 collectd: Install collectd-rrdtool plugin in el9.
Signed-off-by: James Antill <james@and.org>
2025-07-01 11:40:03 -04:00
Michal Konecny
6428f8f772 Sunset github2fedmsg and fedmsg
This commit is removing all the fedmsg related stuff from ansible
repository.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-13 10:08:51 +00:00
Michal Konecny
2ec055db6f Use first uppercase letter for all handlers
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.

I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```

Then I went through all the changes and removed the ones that wasn't
expected to be changed.

Fixes https://pagure.io/fedora-infrastructure/issue/12391

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-10 20:31:49 +00:00
Michal Konecny
7b58dfdce8 Remove fedmsg and github2fedmsg from staging
The messaging bridges openshift project and github2fedmsg VM were
already removed in staging. This is to clean the ansible playbooks.

I will create a separate one for production after this one is merged.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-04 09:13:40 +01:00
Ryan Lerch
47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00
Ryan Lerch
3c41882bb0 ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
Replaces references to shell: with ansible.builtin.shell

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:29:10 +10:00
Ryan Lerch
25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00
Ryan Lerch
462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00
Ryan Lerch
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
Ryan Lerch
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00
Ryan Lerch
691adee6ee Fix name[casing] ansible-lint issues
fix 1900 failures of the following case issue:

`name[casing]: All names should start with an uppercase letter.`

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 20:20:07 +10:00
Ryan Lerch
89f6f1fc32 Fix majority of remaining yamllint warnings and errors
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-28 17:31:45 +10:00
Aurélien Bompard
d7fdbe58b9 Add one more perm for collecd's selinux package
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-06-02 08:30:16 +02:00
Aurélien Bompard
dc623ed962 Collectd improvements
- Increase the service stop timeout to give collectd time to flush the
  values to RRD files on the disk. It currently takes ~1m30s, setting
  the timeout to 5m
- add the unix socket plugin and configure the CGI to make use of it to
  request a flush of the RRD values when a graph is generated
- add SELinux permissions to allow those two to talk to each other

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-06-02 08:15:12 +02:00
Aurélien Bompard
206873b92f Fix the collectd network plugin config
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-26 16:18:41 +02:00
Aurélien Bompard
e7d4e4e905 Collectd: add one more selinux permission
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-26 15:13:19 +02:00
Aurélien Bompard
45ad0573f3 Collectd: add one more selinux permission
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-26 14:54:32 +02:00
Aurélien Bompard
33d6594397 Nice try, but the modules must not be built on a host that's too recent
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-26 12:36:10 +02:00
Aurélien Bompard
3f8cd023f9 Syntax error
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-26 12:23:09 +02:00
Aurélien Bompard
7b2ab9e07f Improve the common collectd selinux module
- Add a workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1731501
- Update the playbook to support module upgrades, not only fresh
  installs

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-05-26 12:21:59 +02:00
Kevin Fenzi
0aeb60adea collectd: add to selinux policy to prevent denied read for proc/net
Should fix up these messages from all machines:
audit[865]: AVC avc:  denied  { read } for  pid=865 comm="reader#2" name="net" dev="proc" ino=4026531845 scontext=system_u:system_r:collectd_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=lnk_file permissive=0
audit[865]: AVC avc:  denied  { read } for  pid=865 comm="reader#2" name="net" dev="proc" ino=4026531845 scontext=system_u:system_r:collectd_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=lnk_file permissive=0

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-01-10 14:35:18 -08:00
Stephen Smoogen
bbf19c899d try to get collectd from using 50+GB for random things which will not live for verylong 2021-07-22 16:40:09 -04:00
Stephen Smoogen
a5ddc65d13 try to get collectd from using 50+GB for random things which will not live for verylong 2021-07-22 16:38:25 -04:00
Stephen Smoogen
dc0df6a285 try to fix collectd to not log all virtaul interfaces. ^vnet does not always work 2021-07-05 08:27:41 -04:00
Stephen Smoogen
3e91f8fdf4 Fix a regex for collectd which was not capturing the correct lines in os-nodes 2021-06-19 12:30:57 -04:00
Stephen Smoogen
a3738ba83c remember that this is a regex and not a shell regex so .* is needed versus * 2021-06-19 12:23:29 -04:00
Stephen Smoogen
3f895444a7 The names of mounted directories under /var/lib/origin seem to have changed again and this is generating multiple gigabytes of directories we would have ignored. Changing the regex to grab it all. 2021-06-19 12:21:22 -04:00
Stephen Smoogen
7620c64c0d Some systems have interface-veth which we ignore. Others have interface-vnet which were not.. however that is 100GB of directories. Adding to the ignore list. 2021-06-19 12:07:05 -04:00
Aurélien Bompard
9e69aa3087 Remove redundant rabbitmq plugin for collectd
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2020-07-02 23:20:23 +02:00
Stephen Smoogen
62b318d084 try to get collectd to really ignore things taking up a lot of space not needed. *FIXME* 2020-06-06 12:56:33 -04:00
Stephen Smoogen
960bd93c15 this is an attempt to shutdown the amount of celery queue logging collectd does. *FIXME* 2020-06-06 12:42:00 -04:00
Adam Williamson
f5522d3fa6 collectd: drop hddtemp config section except on RHEL 6
It is unnecessary since collectd 4, and breaks with 5.9.0 or
later.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
81fb4582e7 ansible: change when conditions to use == instead of is when checking strings.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:10 +02:00
Karsten Hopp
c9ed62ac32 update ansible_distribution_major_version conditionals
Signed-off-by: Karsten Hopp <karsten@redhat.com>
2020-04-24 21:34:10 +02:00
Aurélien Bompard
f6378303ca Fix the collectd rabbitmq plugin and data collection
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2020-04-24 21:34:07 +02:00
Stephen Smoogen
a9d012bd61 make collectd skip even more crap on servers 2019-04-12 14:17:22 +00:00
Stephen Smoogen
292e3a0b4c [collectd] We collect a lot of data on directories which are transient. Drop it 2019-04-11 21:56:37 +00:00
Kevin Fenzi
a8714caab3 first cut at changing all the old |changed to is changed per ansible deprecations 2018-05-07 23:51:48 +00:00
Stephen Smoogen
00b7f0b8dc and to make sure we dont watch netapp stuff in the future 2018-04-24 18:06:24 +00:00
Stephen Smoogen
dfa0191633 and this will just ignore tmpfs overlay no matter the name 2018-04-24 17:17:11 +00:00
Stephen Smoogen
c3ce541909 so it looks like df uses directory trees and not patterns 2018-04-24 16:40:09 +00:00
Stephen Smoogen
bf9c8d4dba the syntax assumes df- already 2018-04-24 16:21:45 +00:00
Stephen Smoogen
1011d0eeed add filters to stop over collection 2018-04-24 16:05:51 +00:00
Kevin Fenzi
a3d3003eb6 remove graphite config entirely 2018-03-05 18:59:18 +00:00
Kevin Fenzi
2cce3883a3 drop collectd graphite plugin 2018-03-05 17:59:38 +00:00
Patrick Uiterwijk
adcbf72f03 Packageize this, packageize that, packageize the world
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-10-08 22:25:52 +00:00
Kevin Fenzi
8a6e51a9a6 change state=running to start=started as the old one is going away in ansible 2.7 2017-04-13 01:37:21 +00:00
Peter Robinson
89fb80cac1 collectd: don't exclude aarch64 for collectd-apache 2017-01-19 12:22:53 +00:00