Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics: Report a gauge for when cluster operator conditions change #107

Merged

Conversation

smarterclayton
Copy link
Contributor

Cluster operators may "flap" - have conditions that periodically
move from true to false (or appear and disappear). The CVO can record
all transitions as they occur and report it to prometheus, allowing
us to get fine grained reports of transitions. Since most operators
should be stable, treat Unknown -> False and -> Unknown
as just as valid, on the assumption that transitions are important.

Will allow us to identify flapping operators and fix them.

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 1, 2019
@smarterclayton
Copy link
Contributor Author

/retest

@deads2k

@smarterclayton
Copy link
Contributor Author

/retest

@smarterclayton
Copy link
Contributor Author

/assign @abhinavdahiya

pkg/cvo/cvo.go Outdated Show resolved Hide resolved
pkg/cvo/metrics.go Outdated Show resolved Hide resolved
Cluster operators may "flap" - have conditions that periodically
move from true to false (or appear and disappear). The CVO can record
all transitions as they occur and report it to prometheus, allowing
us to get fine grained reports of transitions. Since most operators
should be stable, treat Unknown -> False and <missing> -> Unknown
as just as valid, on the assumption that transitions are important.

Will allow us to identify flapping operators and fix them.
@smarterclayton
Copy link
Contributor Author

Resolved, also cleaned up the naming to be slightly more concise.

@abhinavdahiya
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, smarterclayton

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,smarterclayton]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants