Skip to content

Expose a /metrics endpoint in the devfile registry #283

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

Closed
3 tasks
johnmcollier opened this issue Dec 17, 2020 · 1 comment · Fixed by devfile/registry-support#19
Closed
3 tasks

Expose a /metrics endpoint in the devfile registry #283

johnmcollier opened this issue Dec 17, 2020 · 1 comment · Fixed by devfile/registry-support#19
Labels
area/registry Devfile registry for stacks and infrastructure

Comments

@johnmcollier
Copy link
Member

johnmcollier commented Dec 17, 2020

As part of the process to deploy a public devfile registry on OpenShift Dedicated, we need to make sure there is a Prometheus /metrics endpoint exposed in both the registry index server and OCI registry to be scraped.

https://prometheus.io/docs/guides/go-application/ provides some straightforward instructions on setting up a metrics endpoint in a Go webserver. We should also look at what additional metrics we would want to provide that are relevant / useful regarding the state of the Devfile Registry.

  • Add the prometheus Go module to the index server, and set up a /metrics endpoint using the HTTP handler provided by the package
  • Enable Prometheus on the OCI registry server
  • Determine what additional metrics that we should provide, in addition to what Prometheus already provides for us
@johnmcollier johnmcollier added the area/registry Devfile registry for stacks and infrastructure label Dec 17, 2020
@johnmcollier johnmcollier changed the title Expose a /metrics endpoint in the registry index server Expose a /metrics endpoint in the devfile registry Dec 17, 2020
@johnmcollier
Copy link
Member Author

PR for metrics on the OCI Registry: devfile/registry-operator#8
PR for metrics on the index server: devfile/registry-support#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/registry Devfile registry for stacks and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant