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

fix: give cnf data a measurement tag #26

Merged
merged 1 commit into from Sep 13, 2023
Merged

Conversation

andersson1234
Copy link
Collaborator

No description provided.

@andersson1234 andersson1234 force-pushed the fix_cnf_collector branch 2 times, most recently from b724121 to c57bdfb Compare September 12, 2023 16:31
"measurement": "command_not_found_age",
"fields": {
"cnf_age": count,
"out_of_date": ((count > 1) if count is not None else True),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Setting out_of_date to True when there may have been a networking issue (HTTPError) feels incorrect to me. Additionally, if there is an HTTPError I think we should skip returning any data for that release series rather than writing what is effectively nothing to the database.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Amended in the latest diff :)

@murraybd murraybd merged commit 4f5519c into metrics Sep 13, 2023
4 checks passed
@andersson1234 andersson1234 deleted the fix_cnf_collector branch September 14, 2023 08:20
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

2 participants