Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1616278

Summary: Logging default project/namespace incorrect in prometheus configmap
Product: OpenShift Container Platform Reporter: Mike Fiedler <mifiedle>
Component: LoggingAssignee: Jeff Cantrill <jcantril>
Status: CLOSED ERRATA QA Contact: Anping Li <anli>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: aos-bugs, lvlcek, mifiedle, rmeggins
Target Milestone: ---   
Target Release: 3.11.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-11 07:24: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:

Description Mike Fiedler 2018-08-15 13:34:28 UTC
Description of problem:

I deployed prometheus and logging 3.11.0-0.13.0 and could not find the es_* metrics in prometheus.   Editing the prometheus configmap :

      kubernetes_sd_configs:
      - role: endpoints
        namespaces:
          names:
          - 'logging'

Changed the namespace value to openshift-logging and restarted prometheus pod.  es_* metrics became available 


Version-Release number of selected component (if applicable): 3.11.0-0.13.0


How reproducible: Always


Steps to Reproduce:
1. deployed prometheus and logging 3.11.0-0.13.0
2. check prometheus metrics available - no es_* metrics listed
3. edit the prometheus configmap and change the namespace from logging to openshift-logging
4. restart prometheus pod
5. es_* metrics are available

Comment 1 Rich Megginson 2018-08-15 15:01:32 UTC
Where does this configmap come from?

Comment 3 Jeff Cantrill 2018-08-15 20:34:40 UTC
If you deployed this other then using the openshift_prometheus role, please advise.

Comment 4 Mike Fiedler 2018-08-16 00:13:33 UTC
I used the openshift_prometheus role (playbooks/openshift-prometheus/config.yml playbook).   The PR looks good to me.

Comment 5 Anping Li 2018-08-21 02:49:49 UTC
The default logging project is as expected when deployed using openshift-ansible:v3.11.0-0.17.0.0

Comment 7 errata-xmlrpc 2018-10-11 07:24: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, 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/RHBA-2018:2652