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

re-evaluate use of Minio health check / metrics #32

Closed
wthorp opened this issue Sep 28, 2021 · 3 comments
Closed

re-evaluate use of Minio health check / metrics #32

wthorp opened this issue Sep 28, 2021 · 3 comments
Assignees

Comments

@wthorp
Copy link
Contributor

wthorp commented Sep 28, 2021

We seem to have RegisterHealthCheckRouter and RegisterMetricsRouter imported from Minio. Do we use these? Should we?

@wthorp wthorp changed the title re-evaluate health check / metrics re-evaluate use of Minio health check / metrics Feb 15, 2022
@halkyon
Copy link
Contributor

halkyon commented Feb 22, 2022

Not sure what the intent of keeping minio health and metrics routes was for, but the routes do appear to work still: https://gateway.us1.storjshare.io/minio/health/live (returns HTTP 200). Metrics routes under minio/v2/metrics are blocked as the auth has been disabled but can be seen if environment var MINIO_PROMETHEUS_AUTH_TYPE=public is defined before running gateway-mt.

Perhaps these routes were set up in 86fb710 as part of getting CI tests to work, but I can't recall.

See https://gist.github.com/halkyon/f0a32aad663733380b986601ee53bf97 for a sample of the metrics that minio emits. The code for the collector can be found here: https://github.com/storj/minio/blob/main/cmd/metrics-v2.go

I'm not sure if minio metrics provide anything we'd find useful outside of our own middleware, with additions like https://review.dev.storj.io/c/storj/gateway-mt/+/6949.

@amwolff FYI :)

@halkyon halkyon assigned halkyon and unassigned halkyon Feb 22, 2022
@amwolff
Copy link
Member

amwolff commented Feb 23, 2022

I wonder if it's easier to create a subsystem to push these metrics to monkit or rely on what we have/will have in gateway-mt's code. I'm slightly inclined towards the latter.

@storjBuildBot
Copy link
Collaborator

Change https://review.dev.storj.io/c/storj/gateway-mt/+/6964 mentions this issue.

@halkyon halkyon self-assigned this Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

No branches or pull requests

4 participants