Bug 1436001 - Remove postgresql collectd plugin from main collectd conf file and move to a separate one
Summary: Remove postgresql collectd plugin from main collectd conf file and move to a ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-metrics
Classification: oVirt
Component: Generic
Version: 1.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.1.1-1
: 1.0.3
Assignee: Shirly Radco
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks: oVirt-Metrics-and-Logs 1436598
TreeView+ depends on / blocked
 
Reported: 2017-03-26 15:50 UTC by Shirly Radco
Modified: 2017-04-21 09:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-21 09:37:14 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 74648 0 master MERGED collectd: move postgresql plugin to a separate file 2020-02-04 13:06:28 UTC

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


Note You need to log in before you can comment on or make changes to this bug.