Bug 1436001

Summary: Remove postgresql collectd plugin from main collectd conf file and move to a separate one
Product: [oVirt] ovirt-engine-metrics Reporter: Shirly Radco <sradco>
Component: GenericAssignee: Shirly Radco <sradco>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.1CC: bugs, gklein
Target Milestone: ovirt-4.1.1-1Flags: rule-engine: ovirt-4.1+
Target Release: 1.0.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-21 09:37:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1402901, 1436598    

Description Shirly Radco 2017-03-26 15:50:09 UTC
Description of problem:
If the postgresql collectd plugin is not configured correctly it will fail Collectd from starting.

We need to create it on a separate file and enable it only if its is actually configured.

Comment 1 Lukas Svaty 2017-04-10 11:03:15 UTC
verified ovirt-engine-metrics-1.0.2-1.el7ev.noarch

[root@ls-engine1 ~]# ls /etc/collectd.d/
20-builtins-conf-for-ovirt-engine.conf  30-write_http.conf  postgresql.conf

[root@ls-engine1 ~]# grep -R LoadPlugin /etc/collectd.d/
/etc/collectd.d/postgresql.conf:LoadPlugin postgresql <<<<---
/etc/collectd.d/30-write_http.conf:LoadPlugin write_http
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin disk
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin cpu
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin memory
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin load
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin nfs
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin entropy
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin swap
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin df
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin interface
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin aggregation
/etc/collectd.d/20-builtins-conf-for-ovirt-engine.conf:LoadPlugin processes


In bug about configurating BZ#1429861 this we need to tackle renaming this file to standard priority format 40-postgresql.conf and also fill the file as it at the moment only contains loading of the plugin:

[root@ls-engine1 ~]# cat /etc/collectd.d/postgresql.conf 
LoadPlugin postgresql