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

Adding support for badnwidth and iops collection in MINIO REST collector #87

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

nsarras
Copy link
Contributor

@nsarras nsarras commented Nov 29, 2023

No description provided.

@nsarras nsarras requested a review from a team as a code owner November 29, 2023 00:13
@nsarras nsarras self-assigned this Nov 29, 2023
@@ -138,7 +142,9 @@ def get_minio_metrics_from_endpoint(self, endpoint):
r = requests.get(url)
metrics_data = []
for line in r.text.splitlines():
if (any(line.startswith(metric) for metric in self.minio_metrics)):
if (line.startswith("minio")
Copy link
Contributor

Choose a reason for hiding this comment

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

redundant paranthesis and make it into a single line like
if line.startswith('minio') and ....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed

Copy link

sonarcloud bot commented Nov 29, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Copy link
Contributor

@grandsuri grandsuri left a comment

Choose a reason for hiding this comment

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

Looks good

@nsarras nsarras merged commit db835e4 into master Nov 29, 2023
7 checks passed
@nsarras nsarras deleted the bandwidth-iops-minio-metrics branch November 29, 2023 01:28
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.

2 participants