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

Enable metrics on consumer #9

Merged
merged 1 commit into from
Aug 20, 2018
Merged

Enable metrics on consumer #9

merged 1 commit into from
Aug 20, 2018

Conversation

pushm0v
Copy link
Member

@pushm0v pushm0v commented Aug 16, 2018

Currently metrics is disabled on consumer service, this PR will enabled it.

@pushm0v pushm0v self-assigned this Aug 16, 2018
@@ -21,6 +25,8 @@ func ActionBaritoConsumerService(c *cli.Context) (err error) {

service := flow.NewBaritoConsumerService(factory, groupID, esUrl, topicSuffix, newTopicEventName)

callbackInstrumentation()
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to be able to toggle instrumentation metric on or off

Copy link
Member Author

@pushm0v pushm0v Aug 19, 2018

Choose a reason for hiding this comment

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

There is ENV var check in callbackInstrumentation() :

if pushMetricToken == "" || pushMetricUrl == ""{
		fmt.Print("No callback for instrumentation")
		return false
}

@giosakti giosakti merged commit 8d49ad3 into BaritoLog:master Aug 20, 2018
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.

2 participants