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

Add method to expose register metrics #24

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

alexellis
Copy link
Contributor

Metrics can only be registered through a magic environment
variable, this enables users to run:

metrics.Register() in main() to register metrics for
collection.

Tested with inlets

Signed-off-by: Alex Ellis (OpenFaaS Ltd) alexellis2@gmail.com

Metrics can only be registered through a magic environment
variable, this enables users to run:

metrics.Register() in main() to register metrics for
collection.

Tested with inlets

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
Copy link

@galal-hussein galal-hussein left a comment

Choose a reason for hiding this comment

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

LGTM

@cjellick
Copy link

cjellick commented Oct 9, 2020

@dramich will this impact Rancher’s metics configuration?

@alexellis
Copy link
Contributor Author

I'll let @dramich answer, but no, It retains the existing behaviour.

@dramich dramich merged commit 6838081 into rancher:master Oct 12, 2020
@alexellis
Copy link
Contributor Author

Thank you @dramich, would you mind rebasing onto the testing branch too? We are likely to switch over to that to support -> https://github.com/inlets/inlets/pull/178

alexellis added a commit to alexellis/remotedialer that referenced this pull request Oct 12, 2020
Merge commit '6838081e828c56941066d42e5865dc0b0ded8574' into testing

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
dramich added a commit that referenced this pull request Oct 12, 2020
Add #24 to testing branch via a merge commit
@cjellick
Copy link

I'll let @dramich answer, but no, It retains the existing behaviour.

bleckh. i missed where you call Register() at the end of that if block (was reviewing from phone). Anyway, thanks for merging dan.

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.

4 participants