Description of problem:
mapi_machine_phase_transition_seconds_sum doesn't work
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Query mapi_machine_phase_transition_seconds_sum from GUI
Get "No datapoints found"
Could get the metrics.
Already working on fixing this. We need to revendor the MAO dependency in repositories for the providers. This is blocked on revendoring the GCP provider into MAO first, this is in progress.
is it possible this is just a mismatch of the metric name?
i see `mapi_machine_phase_transition_seconds` in the code, without the `_sum` on the end.
(In reply to Michael McCune from comment #2)
> is it possible this is just a mismatch of the metric name?
> i see `mapi_machine_phase_transition_seconds` in the code, without the
> `_sum` on the end.
Comment from Joel Speed: This is a histogram metrics so you can't actually query for the name directly, under the hood it records the total number of observations and the sum of the observations, so you should be able to see `mapi_machine_phase_transition_seconds_sum` and `mapi_machine_phase_transition_seconds_count` as two metrics but not `mapi_machine_phase_transition_seconds`
> (In reply to Michael McCune from comment #2)
> Comment from Joel Speed: This is a histogram metrics so you can't actually
> query for the name directly, under the hood it records the total number of
> observations and the sum of the observations, so you should be able to see
> `mapi_machine_phase_transition_seconds_sum` and
> `mapi_machine_phase_transition_seconds_count` as two metrics but not
ack, i did not realize that lol. thanks Joel!
PRs to fix this are currently under review
Verified on gcp
$ token=`oc sa get-token prometheus-k8s -n openshift-monitoring`
$ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://prometheus-k8s.openshift-monitoring.svc:9091/api/v1/label/__name__/values' | jq | grep "mapi_machine_phase_transition_seconds"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 73228 0 73228 0 0 1787k 0 --:--:-- --:--:-- --:--:-- 1833k
Verified on osp aws azure.
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.7.0 security, bug fix, and enhancement 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.