Bug 2051737

Summary: [RFE] add an option to the metrics role to enable postfix metric collection
Product: Red Hat Enterprise Linux 9 Reporter: Nathan Scott <nathans>
Component: rhel-system-rolesAssignee: Nathan Scott <nathans>
Status: CLOSED ERRATA QA Contact: Jakub Haruda <jharuda>
Severity: unspecified Docs Contact: Gabi Fialová <gfialova>
Priority: unspecified    
Version: 9.1CC: briasmit, gfialova, jharuda, jkurik, nhosoi, rmeggins, spetrosi
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 9.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:metrics
Fixed In Version: rhel-system-roles-1.18.0-1.el9 Doc Type: Enhancement
Doc Text:
.The `metrics` role can export `postfix` performance data You can now use the new `metrics_from_postfix` boolean variable in the `metrics` role for recording and detailed performance analysis. With this enhancement, setting the variable enables the `pmdapostfix` metrics agent on the system, making statistics about `postfix` available.
Story Points: ---
Clone Of:
: 2079114 (view as bug list) Environment:
Last Closed: 2022-11-15 10:22:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2079114    

Description Nathan Scott 2022-02-07 22:43:27 UTC
Provide a mechanism whereby Postfix service setup by RHEL system roles (postfix role) have observability enabled (metrics role) and integrated with metric data recording, and any necessary rules are created and enabled.

PCP supports postfix metrics via pmdapostfix(1) so this is a matter of enabling that agent (probably via a metrics_from_postfix variable in the metrics role) and ensuring any postfix configuration to enable metrics is done, any required additional tools are installed and functional (qshape), and so on.

Comment 3 Rich Megginson 2022-04-25 22:40:42 UTC
@nathans how does a user of the metrics role indicate that they want to collect postfix metrics?  Do we need to add a `metrics_from_postfix` variable to https://github.com/linux-system-roles/metrics/blob/main/defaults/main.yml ?

Comment 4 Nathan Scott 2022-04-25 23:18:57 UTC
Hi Rich,

Yep - sorry, my bad - I haven't yet merged:
https://github.com/linux-system-roles/metrics/pull/110

Will check CI once more (IIRC the failure there was unrelated last I looked) and merge shortly.

cheers.

Comment 7 Fedora Update System 2022-05-11 01:17:50 UTC
FEDORA-2022-2da3a47337 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2022-05-11 01:23:59 UTC
FEDORA-2022-d6e6c7c37c has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2022-05-11 01:34:16 UTC
FEDORA-2022-671a5d63e6 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 errata-xmlrpc 2022-11-15 10:22:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:8117