Commit 688bf45
committed
pkg/cvo/metrics: Serve cluster_version_available_updates when channel is set
Since 8b91189 (cvo: Add prometheus metrics to the CVO for current
update state, 2018-11-05, #45), cluster_version_available_updates is
only served when there are unconditionally-recommended updates and
retrieval is succeeding. This makes it hard to understand at the
fleet level when:
cluster_operator_conditions{name="version", condition="RetrievedUpdates", reason="VersionNotFound"} == 0
is because of a misconfigured channel, or a misbehaving Update
Service, or otherwise. We should always export
cluster_version_available_updates whenever a channel is set, to make
it easier to isolate the “because the cluster-admin has somehow
selected a channel not compatible with their current version” (which
we can’t do much about other than keep serving our existing
CannotRetrieveUpdates alert) from the other possibilities (which we
might be able to do something about).1 parent 6d31e54 commit 688bf45
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
632 | | - | |
| 632 | + | |
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| |||
0 commit comments