Bug 1859572

Summary: Charts in "PCP Vector Container Overview" dashboard are showing misleading values when no container is running
Product: Red Hat Enterprise Linux 8 Reporter: Jan Kurik <jkurik>
Component: grafana-pcpAssignee: Andreas Gerstmayr <agerstmayr>
Status: CLOSED ERRATA QA Contact: Jan Kurik <jkurik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: agerstmayr, grafana-maint, jkurik, mgoodwin, nathans
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.0.2-2 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:04:30 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:
Attachments:
Description Flags
Misleading values in "PCP Vector Container Overview" dashboard none

Description Jan Kurik 2020-07-22 13:21:50 UTC
Created attachment 1702075 [details]
Misleading values in "PCP Vector Container Overview" dashboard

Description of problem:
When there is no container running on a host system, Grafana shows in the default "PCP Vector Container Overview" dashboard misleading values (see the screenshot in attachment).

Version-Release number of selected component (if applicable):
* grafana-6.7.4-1.el8
* grafana-pcp-2.0.2-1.el8
* pcp-5.1.1-3.el8

How reproducible:
always

Steps to Reproduce:
1. Install pcp, grafana, grafana-pcp components
2. Start pcp (pmcd, pmproxy) and grafana
2.1 Make sure there is no container running on the system
- "podman ps" Should return nothing
3. In grafana, enable the "Performance Co-Pilot" plugin
4. In grafana, configure the Vector datasource using default values
5. Check charts in "PCP Vector Container Overview" dashboard

Actual results:
* Charts in the "PCP Vector Container Overview" dashboard are showing a lots of misleading values even no container is running on the host system


Expected results:
The dashboard (or the charts) stays empty as there is nothing to show

Additional info:
In case there is at least one container running on the monitored system, the dashboard shows correct/expected values.

Comment 1 Andreas Gerstmayr 2020-07-24 16:05:29 UTC
New grafana-pcp build with patch applied: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1266400

@Jan, can you set the erratum back to NEW_FILES so I can add the new build and attach this BZ?


Cheers,
Andreas

Comment 2 Jan Kurik 2020-07-24 20:26:06 UTC
(In reply to Andreas Gerstmayr from comment #1)
> @Jan, can you set the erratum back to NEW_FILES so I can add the new build
> and attach this BZ?

Done.

Comment 5 Andreas Gerstmayr 2020-07-27 13:57:43 UTC
Thanks!

I've added the new build to the erratum & changed state to ON_QA again.

Comment 6 Jan Kurik 2020-08-18 09:24:07 UTC
Verified manually - fixed in grafana-pcp-2.0.2-3.el8 build.

Comment 9 errata-xmlrpc 2020-11-04 03:04:30 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 (grafana-pcp 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-2020:4693