Skip to content

Conversation

@liranmauda
Copy link
Contributor

Explain the changes

  • Removing read and write error count for NSFS I/O metrics
  • If the namespace count does have some error prompting a warning. just that we will be aware and consider re-adding it
  • Adding to the NSFS metrics report the metric type (fs/op/io)

Signed-off-by: liranmauda liran.mauda@gmail.com

Issues: Fixed #xxx / Gap #xxx

  1. Fixes: From delete buckets operation's metrics, remove error_write_count and error_read_count for I/O metrics. #7188
  2. Fixes: metrics params name should be identical, for I/O Ops, S3Ops, and FS Ops #7190

Testing Instructions:

  1. Create an NSFS bucket
  2. Upload files
  3. Check the metrics in /metrics/nsfs_stats

https___192_168_64_205_30009_metrics_nsfs_stats

@liranmauda
Copy link
Contributor Author

There are 2 commits intentionally.

Copy link
Contributor

@shirady shirady Feb 2, 2023

Choose a reason for hiding this comment

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

I think that we should not leave code in comments in general.
If we would get here and need to debug it - we have version control.

If you insist on leaving them, at least I would suggest also leaving a comment here about why we added the code in a comment explicitly. For example:

Uncomment these lines in case we see the warning above in the logs.
I left them to help us debug it easily.
We can delete them if we will see that we don't have the warning above for a while.

@liranmauda, What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The warning itself is the explanation.
here we will probably never reach the error path as it is in under layer, and the error will fail much earlier.
with that said, this code is relaying on an older code, and for the chance that we are missing a flow, we added the warning to explain and to see that we actually moved throw this flow.

once we get confidante we can remove the condition completely (the whole if, else will not be relevant).

- Removing read and write error count for NSFS  I/O metrics
- if namespace count does have some error prompting a warning. just that we will be aware and consider re-adding it

Signed-off-by: liranmauda <liran.mauda@gmail.com>
- Adding to the nsfs metrics report the metric type (fs/op/io)

Signed-off-by: liranmauda <liran.mauda@gmail.com>
@liranmauda liranmauda force-pushed the liran-remove-nsfs-io-error-count branch from 4ca3608 to 3021296 Compare February 2, 2023 10:41
@liranmauda liranmauda merged commit 6333e94 into noobaa:master Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

3 participants