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

HTTP notifier does not work as expected #393

Open
dkoding opened this issue May 14, 2018 · 1 comment
Open

HTTP notifier does not work as expected #393

dkoding opened this issue May 14, 2018 · 1 comment

Comments

@dkoding
Copy link

dkoding commented May 14, 2018

I have the following configuration:

[notifier.kafkastatus]
class-name="http"
interval=60
threshold=1
timeout=60
keepalive=60
extras={ env="dev" }
send-close=true
url-open="http://my-host:9777/kafkastatus/open"
method-open="POST"
template-open="/etc/burrow/post.tmpl"
url-close="http://my-host:9777/kafkastatus/close"
method-close="POST"
template-close="/etc/burrow/post.tmpl"

The post.tmpl looks like this:


{
    "cluster":"{{.Result.Cluster}}",
    "group":"{{.Result.Group}}",
    "status":"{{.Result.Status.String}}",
    "complete":"{{.Result.Complete}}",
    "events":{{.Result.Partitions | jsonencoder}}
}

No HTTP notifications are sent at all. I have tried different thresholds with the same result.

@nickdevp
Copy link

Might be related to #354. If the consumer is lagging, only then you will get notifications.

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

No branches or pull requests

2 participants