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

NOPS-817- Handle Sample and Baseline null values. #145

Merged
merged 5 commits into from
May 12, 2021

Conversation

bolajiadeyemi
Copy link
Contributor

We discovered that there is a situation where we get null values for Sample and Baseline from Graphite, which we aren't handling here. If Sample and Baseline are both nulls, these conditions will be false, and ok will also be false. This PR adds transformNull to the graphite query and an additional check for null values. See discussion.

Tickets

https://financialtimes.atlassian.net/browse/NOPS-817

@bolajiadeyemi bolajiadeyemi requested a review from a team as a code owner May 12, 2021 11:47
README.md Outdated
@@ -126,7 +126,8 @@ Checks if the value of a graphite metric has received data recently.
#### `cloudWatchThreshold`
Checks whether the value of a CloudWatch metric has crossed a threshold

_Note: this assumes that `AWS_ACCESS_KEY` & `AWS_SECRET_ACCESS_KEY` are implictly available as environment variables on process.env_
_Note: this assumes that `AWS_ACCESS_KEY` & `AWS_SECRET_ACCESS_KEY` are implicitly main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: what does 'main' mean in this context?

Copy link
Contributor Author

@bolajiadeyemi bolajiadeyemi May 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another typo, fixed thanks

Copy link
Contributor

@jenniferemshepherd jenniferemshepherd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR description!! Thanks 🌟

@bolajiadeyemi bolajiadeyemi merged commit 27c1734 into main May 12, 2021
@bolajiadeyemi bolajiadeyemi deleted the bug/NOPS-817-handle-graphite-null-values branch May 12, 2021 13:38
JSRedondo pushed a commit that referenced this pull request Jun 20, 2022
…hite-null-values

NOPS-817- Handle Sample and Baseline null values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants