Bug 1654907

Summary: Prometheus restricted to eth0
Product: OpenShift Container Platform Reporter: Greg Rodriguez II <grodrigu>
Component: MonitoringAssignee: Frederic Branczyk <fbranczy>
Status: CLOSED DUPLICATE QA Contact: Junqi Zhao <juzhao>
Severity: high Docs Contact:
Priority: high    
Version: 3.11.0CC: akiyoshi.yonekura, aos-bugs, dapark, jmartisk, minden, mmariyan, pdwyer, rdiazgav, sauchter, sgarciam
Target Milestone: ---Keywords: NeedsTestCase
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-06 15:35:14 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 Greg Rodriguez II 2018-11-30 02:05:51 UTC
Description of problem:
Prometheus is not able to pull data using a NIC outside of eth0

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

How reproducible:
Customer verified

Steps to Reproduce:
1. Project set to use "ens160" NIC in Prometheus
2. NIC setting automatically rolls back to "eth0"
3. Unable to pull metrics

Actual results:
Unable to collect metric data in Prometheus due to inability to set NIC outside of "eth0"

Expected results:
Ability to change NIC settings as needed

Additional info:
N/A

Comment 2 Junqi Zhao 2018-11-30 05:33:11 UTC
Important

Network utilization metrics for OpenShift Container Platform are only collected for eth0 network interfaces. Therefore, network utilization trend will not be displayed for network interfaces other than eth0 on the overview screen of the provider.

Comment 3 Frederic Branczyk 2018-11-30 07:27:06 UTC
Thank you for reporting this, we should make this configurable. From the description is sounds like the data may be collected though, just not alerted on. Can you validate this by checking whether this query shows records you expected?

node_network_receive_bytes_total{job="node-exporter"}

Comment 9 Frederic Branczyk 2019-02-04 14:33:56 UTC
https://github.com/openshift/cluster-monitoring-operator/pull/226 was merged to only exclude virtual interfaces and not whitelist only eth0.

Comment 13 Junqi Zhao 2019-03-06 15:35:14 UTC

*** This bug has been marked as a duplicate of bug 1670330 ***