Bug 1741685 - must-gather does not collect monitoring rules (PrometheusRule or ServiceMonitor) from openshift-* namespaces
Summary: must-gather does not collect monitoring rules (PrometheusRule or ServiceMonit...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.1.z
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.3.0
Assignee: Pawel Krupa
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-15 19:57 UTC by Eric Rich
Modified: 2020-01-23 11:05 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 11:05:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
servicemonitors/prometheusrules/alertmanagers/prometheuses info are collected by must-gather (751.84 KB, text/plain)
2019-11-29 06:37 UTC, Junqi Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-monitoring-operator pull 553 0 'None' closed Bug 1741685: pkg/client: add more relatedObjects to improve data from must-gather 2020-12-11 07:47:46 UTC
Github openshift must-gather pull 126 0 'None' closed Bug 1741685: collection-scripts: gather monitoring related resources 2020-12-11 07:47:48 UTC
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:05:32 UTC

Description Eric Rich 2019-08-15 19:57:48 UTC
Description of problem:

We don't seem to define the properly related resources within our operators for PrometheusRule or ServiceMonitor types. 

We should probably be gathering the following ServiceMonitor items: 

> NAMESPACE                                               NAME                  
> openshift-apiserver-operator                            openshift-apiserver-operator                           
> openshift-authentication-operator                       authentication-operator                                
> openshift-authentication                                oauth-openshift                                        
> openshift-controller-manager-operator                   openshift-controller-manager-operator                  
> openshift-controller-manager                            openshift-controller-manager                           
> openshift-dns                                           dns-default                                            
> openshift-image-registry                                image-registry                                         
> openshift-ingress                                       router-default                                         
> openshift-kube-apiserver-operator                       kube-apiserver-operator                                
> openshift-kube-apiserver                                monitor                                                
> openshift-kube-controller-manager-operator              kube-controller-manager-operator                       
> openshift-kube-controller-manager                       monitor                                                
> openshift-kube-scheduler-operator                       kube-scheduler-operator                                
> openshift-kube-scheduler                                monitor                                                
> openshift-monitoring                                    alertmanager                                           
> openshift-monitoring                                    cluster-monitoring-operator                            
> openshift-monitoring                                    cluster-version-operator                               
> openshift-monitoring                                    etcd                                                   
> openshift-monitoring                                    grafana                                                
> openshift-monitoring                                    kube-apiserver                                         
> openshift-monitoring                                    kube-controller-manager                                
> openshift-monitoring                                    kube-scheduler                                         
> openshift-monitoring                                    kube-state-metrics                                     
> openshift-monitoring                                    kubelet                                                
> openshift-monitoring                                    node-exporter                                          
> openshift-monitoring                                    openshift-apiserver                                    
> openshift-monitoring                                    prometheus                                             
> openshift-monitoring                                    prometheus-operator                                    
> openshift-monitoring                                    telemeter-client                                       
> openshift-operator-lifecycle-manager                    catalog-operator                                       
> openshift-operator-lifecycle-manager                    olm-operator                                           
> openshift-sdn                                           monitor-sdn                                            
> openshift-service-catalog-apiserver-operator            openshift-service-catalog-apiserver-operator           
> openshift-service-catalog-controller-manager-operator   openshift-service-catalog-controller-manager-operator  

We should probably be gathering the following PrometheusRule items: 

> NAMESPACE              NAME                  
> openshift-monitoring   prometheus-k8s-rules  


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

Comment 2 Maciej Szulik 2019-08-16 15:05:18 UTC
Sending it to monitoring team, since they own the code responsible for filling in the related objects.

Comment 10 Junqi Zhao 2019-11-29 06:37:45 UTC
Created attachment 1640583 [details]
servicemonitors/prometheusrules/alertmanagers/prometheuses info are collected by must-gather

Comment 12 errata-xmlrpc 2020-01-23 11:05:05 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-2020:0062


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