Red Hat Bugzilla – Bug 1616278
Logging default project/namespace incorrect in prometheus configmap
Last modified: 2018-10-11 03:25:28 EDT
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
Where does this configmap come from?
https://github.com/openshift/openshift-ansible/pull/9616
If you deployed this other then using the openshift_prometheus role, please advise.
I used the openshift_prometheus role (playbooks/openshift-prometheus/config.yml playbook). The PR looks good to me.
The default logging project is as expected when deployed using openshift-ansible:v3.11.0-0.17.0.0
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