Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

expose prometheus metrics endpoint #124

Merged

Conversation

ckrough
Copy link
Contributor

@ckrough ckrough commented Oct 17, 2018

This change exposes a simple Prometheus /metrics endpoint as part of #111. This adds the listener and exposes the default promhttp metrics. I think we should introduce further instrumentation as part of #111 after some discussion of what is important to monitor to start with, but it's worth adding this default set on it's own.

Issue #, if available: #111

Description of changes:

  • expose simple metrics via promhttp handler at /metrics
  • run operator and metrics handler as goroutines

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- expose simple metrics via promhttp handler at /metrics
- move operator and metrics handler into goroutines

Signed-off-by: Chris Krough <ckkrough@amazon.com>
Copy link
Contributor

@christopherhein christopherhein left a comment

Choose a reason for hiding this comment

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

Awesome @ckrough thanks for adding this, approving this for now. Did you also want to implement some metrics within this PR or is the idea to open a separate with some metrics added?

@christopherhein christopherhein added lgtm PR is ready to be merged approved PRs that are approved labels Oct 18, 2018
@ckrough
Copy link
Contributor Author

ckrough commented Oct 18, 2018

I suggest we merge this now, then add instrumentation as follow-on PRs. We can leave 111 open to kinda guide them. I'd like to look across the code to see where the important metrics are, implement those to set the tone for instrumenting the operator, then look to the community for the long tail evolving that.

Sound good?

@christopherhein
Copy link
Contributor

Sounds great, merging.

@christopherhein christopherhein merged commit 20d7d37 into amazon-archives:master Oct 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved PRs that are approved lgtm PR is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants