Bug 2039321 - SDN controller metrics are not being consumed by prometheus
Summary: SDN controller metrics are not being consumed by prometheus
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.10
Hardware: All
OS: All
Target Milestone: ---
: 4.10.0
Assignee: Martin Kennelly
QA Contact: Weibin Liang
Depends On:
TreeView+ depends on / blocked
Reported: 2022-01-11 13:42 UTC by Martin Kennelly
Modified: 2022-03-12 04:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2022-03-12 04:40:34 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift cluster-network-operator pull 1250 0 None open Bug 2039321: SDN: Expose controller metrics for collection 2022-01-11 13:43:44 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-12 04:40:44 UTC

Description Martin Kennelly 2022-01-11 13:42:21 UTC
Description of problem:
SDN controller metrics are exposed but are not being scraped by prometheus via servicemonitor+service [1] pattern.

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

How reproducible:

Steps to Reproduce:
1. Spin up 4.10 cluster
2. Search for SDN controller metric "sdn_controller_num_egress_ips" via prometheus query interface. It will not exist.

Actual results:
SDN controller metrics are not available via prometheus but are exposed via SDN controller.

Expected results:
SDN controller metrics are available via prometheus query interface.

Additional info:
[1] https://docs.openshift.com/container-platform/4.7/monitoring/managing-metrics.html#setting-up-metrics-collection-for-user-defined-projects_managing-metrics

Comment 4 Weibin Liang 2022-01-27 18:55:00 UTC
Tested and verified in 4.10.0-0.nightly-2022-01-27-104747

[weliang@weliang ~]$ oc -n openshift-monitoring exec -it prometheus-k8s-1 curl http://localhost:9090/api/v1/query?query=sdn_controller_num_egress_ips
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.

Comment 7 errata-xmlrpc 2022-03-12 04:40:34 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 (Moderate: OpenShift Container Platform 4.10.3 security 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.


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