Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

feat: support metrics scrape - #2344

Merged
pjuarezd merged 15 commits into
minio:masterfrom
jiuker:feat-support-metrics-scrope
Apr 14, 2025
Merged

pjuarezd merged 15 commits into
minio:masterfrom
jiuker:feat-support-metrics-scrope

Conversation

@jiuker

@jiuker jiuker commented Oct 18, 2024 •

Copy link
Copy Markdown
Contributor

feat: support metrics scrape
fix #2327
we just support /minio/v2/metrics/cluster before
now we can do more type for this
like

prometheusOperatorScrapeMetricsPath:
- /minio/v2/metrics/cluster
- /minio/metrics/v3/api
- /minio/v2/metrics/bucket

default is /minio/v2/metrics/cluster

@harshavardhana

Copy link
Copy Markdown
Member

We should add a way to scrape v3 metrics as well

@jiuker
jiuker requested a review from shtripat October 18, 2024 07:43
@jiuker jiuker self-assigned this Oct 21, 2024
@cesnietor

Copy link
Copy Markdown
Contributor

@jiuker is there a way we can create tests for this? since this is a new feature? like an integration test? Thanks.

@pjuarezd
pjuarezd force-pushed the feat-support-metrics-scrope branch from b38e1b6 to 982f5d4 Compare December 9, 2024 19:51
pjuarezd
pjuarezd previously approved these changes Dec 9, 2024
Comment thread pkg/controller/prometheus.go Resolved
@jiuker

jiuker commented Feb 5, 2025

Copy link
Copy Markdown
Contributor Author

Will take a look

@jiuker
jiuker force-pushed the feat-support-metrics-scrope branch from 40012a7 to 732b95c Compare February 6, 2025 03:52
@allanrogerr

Copy link
Copy Markdown
Contributor

@jiuker PTAL - pkg:golang/golang.org/x/crypto@v0.32.0 vulnerability

Comment thread pkg/controller/prometheus.go Resolved
Comment thread pkg/resources/configmaps/prometheus.go Resolved
@jiuker
jiuker requested a review from allanrogerr March 11, 2025 07:36

@ramondeklein ramondeklein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm no expert on Prometheus metrics and MinIO, but I think this code doesn't work correctly. Please make these changes to AIStor operator and implement proper integration tests.

Comment thread pkg/apis/minio.min.io/v2/types.go Resolved
Comment thread pkg/apis/minio.min.io/v2/types.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
jiuker added 2 commits March 12, 2025 13:16
refactor
jiuker
UT
UT
@jiuker
jiuker requested a review from ramondeklein March 12, 2025 05:25
jiuker
ut
ut
Comment thread pkg/apis/minio.min.io/v2/helper.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
Comment thread pkg/controller/prometheus.go Resolved
apply suggestion
@jiuker
jiuker requested a review from ramondeklein March 14, 2025 01:27

@ramondeklein ramondeklein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The code looks fine, but we do need an integration test to verify the functionality. It's a major change and it needs proper testing.

jiuker
UT
UT
jiuker added 3 commits March 17, 2025 16:58
lint
remove env
rename
cniackz
cniackz previously approved these changes Mar 17, 2025
allanrogerr
allanrogerr previously approved these changes Mar 21, 2025

@allanrogerr allanrogerr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested. LGTM.

@allanrogerr
allanrogerr dismissed ramondeklein’s stale review March 21, 2025 20:14

Changes addressed

Comment thread pkg/controller/prometheus_test.go Resolved
Comment thread pkg/controller/prometheus_test.go Resolved
Co-authored-by: Shubhendu <shubhendu.tripathi@gmail.com>
@jiuker
jiuker dismissed stale reviews from allanrogerr and cniackz via ca49738 April 1, 2025 09:09
rename

@shtripat shtripat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minor ones

Comment thread docs/tenant_crd.adoc Resolved
Comment thread pkg/apis/minio.min.io/v2/types.go Resolved
jiuker
doc
doc
@jiuker
jiuker requested a review from shtripat April 7, 2025 04:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: expose more Prometheus metrics than just /minio/v2/metrics/cluster

9 participants