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

Enabled option to show node and bucket metrics #4632

Merged
merged 4 commits into from
Jul 21, 2023

Conversation

shtripat
Copy link
Contributor

Description

Earlier the command mc admin prometheus metrics ALIAS used to display only the cluster level metrics. This change enables optionally to list node / bucket specific metrics.

Motivation and Context

Enable listing of node and bucket specific metrics

How to test this PR?

mc admin prometheus metrics ALIAS node
mc admin prometheus metrics ALIAS bucket

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

@shtripat shtripat marked this pull request as ready for review July 19, 2023 05:33
cmd/admin-prometheus-metrics.go Show resolved Hide resolved
cmd/admin-prometheus-metrics.go Outdated Show resolved Hide resolved
cmd/admin-prometheus-metrics.go Show resolved Hide resolved
cmd/admin-prometheus-metrics.go Show resolved Hide resolved
Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

maybe a flag instead of an argument is easier? not sure, LGTM otherwise

cmd/admin-prometheus-metrics.go Outdated Show resolved Hide resolved
cmd/admin-prometheus-metrics.go Show resolved Hide resolved
cmd/admin-prometheus-metrics.go Outdated Show resolved Hide resolved
Earlier the command `mc admin prometheus metrics ALIAS` used to
display only the cluster levele metrics. This change enables
optionally to list node / bucket specific metrics.

Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
@shtripat shtripat requested a review from klauspost July 20, 2023 09:12
Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

LGTM

@harshavardhana harshavardhana merged commit 1c17ff4 into minio:master Jul 21, 2023
5 checks passed
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.

3 participants