Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

add elasticsearch sink for heapster #733

Merged
merged 4 commits into from May 16, 2016
Merged

add elasticsearch sink for heapster #733

merged 4 commits into from May 16, 2016

Conversation

huangyuqi
Copy link

@huangyuqi huangyuqi commented Nov 26, 2015

This sink supports monitoring metrics and events.
To use the Elasticsearch sink add the following flag:

--sink=elasticsearch:<ES_SERVER_URL>[?<OPTIONS>]

Normally, elasticsearch cluster has multi nodes or a proxy, so nodes' list or proxy
server need be configured for elasticsearch sink.
Thus, we can set ES_SERVER_URL to a dummy value, and provide nodes list or proxy server
in url's query string.
Besides, the following options can be set in query string:

  • index - ES's index for metrics&events. Default: heapster

    if the ES cluster needs authentication, we should provide the username and secret.

  • esUserName - ES's user name

  • esUserSecret - ES's user secret

Like this:

--sink="elasticsearch:?nodes=0.0.0.0:9200&index=testMetric"

or

--sink="elasticsearch:?nodes=0.0.0.0:9200&index=testEvent"

@cadvisorJenkinsBot
Copy link

Can one of the admins verify this patch?

@vishh
Copy link
Contributor

vishh commented Nov 30, 2015

ok to test

On Wed, Nov 25, 2015 at 6:33 PM, cadvisorJenkinsBot <
notifications@github.com> wrote:

Can one of the admins verify this patch?


Reply to this email directly or view it on GitHub
#733 (comment).

@vishh
Copy link
Contributor

vishh commented Nov 30, 2015

cc @kubernetes/heapster-maintainers

@vishh
Copy link
Contributor

vishh commented Dec 3, 2015

needs a rebase

@huangyuqi
Copy link
Author

Hi, @vishh ,Is there something wrong about the CI? I got the error in checking process,

I1203 02:14:44.359848   15679 heapster_api_test.go:79] Failed to create ns: namespaces "heapster-e2e-tests" already exists
--- FAIL: TestHeapster (51.98s)
    assertions.go:154: 

    Location:   heapster_api_test.go:784

    Error:      No error is expected but got namespaces "heapster-e2e-tests" already exists

@vishh
Copy link
Contributor

vishh commented Dec 4, 2015

Can you rebase to HEAD and try again?

On Wed, Dec 2, 2015 at 6:53 PM, yuqi huang notifications@github.com wrote:

Hi, @vishh https://github.com/vishh ,Is there something wrong about the
CI? I got the error in checking process,

I1203 02:14:44.359848 15679 heapster_api_test.go:79] Failed to create ns: namespaces "heapster-e2e-tests" already exists
--- FAIL: TestHeapster (51.98s)
assertions.go:154:

Location:   heapster_api_test.go:784

Error:      No error is expected but got namespaces "heapster-e2e-tests" already exists


Reply to this email directly or view it on GitHub
#733 (comment).

@huangyuqi
Copy link
Author

OK, I will try. Thanks @vishh

@huangyuqi huangyuqi closed this Dec 4, 2015
@huangyuqi huangyuqi reopened this Dec 4, 2015
@cadvisorJenkinsBot
Copy link

Can one of the admins verify this patch?

@huangyuqi
Copy link
Author

Hi, @vishh, I have rebased, but the checks were still not successful.

@vishh
Copy link
Contributor

vishh commented Dec 4, 2015

cc @piosz. Is our test infra broken?

On Thu, Dec 3, 2015 at 5:17 PM, yuqi huang notifications@github.com wrote:

Hi, @vishh https://github.com/vishh, I have rebased, but the checks
were still not successful.


Reply to this email directly or view it on GitHub
#733 (comment).

@piosz
Copy link
Contributor

piosz commented Dec 6, 2015

It seems to be broken. How can I get there to fix it?

@vishh vishh closed this Dec 11, 2015
@vishh vishh reopened this Dec 11, 2015
@cadvisorJenkinsBot
Copy link

Can one of the admins verify this patch?

@vishh
Copy link
Contributor

vishh commented Dec 11, 2015

ok to test

On Fri, Dec 11, 2015 at 12:11 PM, cadvisorJenkinsBot <
notifications@github.com> wrote:

Can one of the admins verify this patch?


Reply to this email directly or view it on GitHub
#733 (comment).

@huangyuqi
Copy link
Author

Hi, @vishh , how can I resolve the issue about the above checks? Thanks.

@k8s-bot
Copy link

k8s-bot commented Dec 14, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@vishh
Copy link
Contributor

vishh commented Dec 17, 2015

@huangyuqi: @mwielgus might be able to assist you with that.

@huangyuqi
Copy link
Author

thanks @vishh
Hi, @mwielgus , how can I resolve the issue about the above checks? Thanks.

@huangyuqi huangyuqi closed this Dec 22, 2015
@huangyuqi huangyuqi reopened this Dec 22, 2015
@cadvisorJenkinsBot
Copy link

Can one of the admins verify this patch?

@vishh
Copy link
Contributor

vishh commented Dec 22, 2015

ok to test

On Mon, Dec 21, 2015 at 11:48 PM, cadvisorJenkinsBot <
notifications@github.com> wrote:

Can one of the admins verify this patch?


Reply to this email directly or view it on GitHub
#733 (comment).

@huangyuqi
Copy link
Author

Hi, @vishh
I have taken a rebase with master.would you please help to review ? Thanks.

@piosz
Copy link
Contributor

piosz commented May 10, 2016

Any progress on this? It would be great to include it in Heapster 1.1/Kubernetes 1.3. The code freeze is in 2 weeks from now.

@k8s-bot
Copy link

k8s-bot commented May 12, 2016

Jenkins GCE e2e

Build/test failed for commit a212a9d.

@huangyuqi
Copy link
Author

Hi, @piosz I have finished this ES sink, please give me some review comments. Thanks.

@k8s-bot
Copy link

k8s-bot commented May 12, 2016

Jenkins GCE e2e

Build/test failed for commit 4eb0664.

@huangyuqi
Copy link
Author

I got an error in CI:

ok      k8s.io/heapster/events/manager  5.528s
--- FAIL: TestAllExportsInTime (2.00s)
    <autogenerated>:31: 

    Location:   manager_test.go:55

    Error:      Not equal: 3 (expected)
                    != 2 (actual)

W0512 06:35:16.299389   29333 manager.go:108] Failed to events data to sink: s2
W0512 06:35:19.309638   29333 manager.go:108] Failed to events data to sink: s2
W0512 06:35:22.310790   29333 manager.go:108] Failed to events data to sink: s2
W0512 06:35:22.310817   29333 manager.go:108] Failed to events data to sink: s1
W0512 06:35:25.311504   29333 manager.go:108] Failed to events data to sink: s2
W0512 06:35:25.311505   29333 manager.go:108] Failed to events data to sink: s1
FAIL
FAIL    k8s.io/heapster/events/sinks    15.047s

@piosz
Copy link
Contributor

piosz commented May 12, 2016

this is a known flake

@piosz
Copy link
Contributor

piosz commented May 12, 2016

@k8s-bot test this

@k8s-bot
Copy link

k8s-bot commented May 12, 2016

Jenkins GCE e2e

Build/test failed for commit 4eb0664.

@huangyuqi huangyuqi closed this May 13, 2016
@huangyuqi huangyuqi reopened this May 13, 2016
@huangyuqi
Copy link
Author

@piosz , some issues still exist in CI

[0;33mWaiting for 2 ready nodes. 0 ready nodes, 0 registered. Retrying.�[0m
�[0;33mWaiting for 2 ready nodes. 0 ready nodes, 0 registered. Retrying.�[0m
�[0;31mDetected 0 ready nodes, found 0 nodes out of expected 2. Your cluster may not be working.�[0m
I0512 07:20:20.354669   22591 framework.go:285] Retry validation after 10ns seconds.
I0512 07:20:30.354878   22591 framework.go:212] validating existing cluster
I0512 07:20:30.354934   22591 framework.go:133] about to run &{/tmp/heapster_test/1.0.7/kubernetes/cluster/validate-cluster.sh [/tmp/heapster_test/1.0.7/kubernetes/cluster/validate-cluster.sh] []  <nil> <nil> <nil> [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>}
panic: test timed out after 30m0s

goroutine 35 [running]:
testing.startAlarm.func1()
    /usr/local/go/src/testing/testing.go:703 +0x132
created by time.goFunc
    /usr/local/go/src/time/sleep.go:129 +0x3a

@piosz
Copy link
Contributor

piosz commented May 16, 2016

@k8s-bot test this

@piosz
Copy link
Contributor

piosz commented May 16, 2016

@huangyuqi I fixed it yesterday #1159

@huangyuqi
Copy link
Author

thanks so much @piosz

@ixdy
Copy link
Contributor

ixdy commented May 16, 2016

@k8s-bot test this please

@k8s-bot
Copy link

k8s-bot commented May 16, 2016

Jenkins GCE e2e

Build/test passed for commit 4eb0664.

@k8s-bot
Copy link

k8s-bot commented May 16, 2016

Jenkins GCE e2e

Build/test passed for commit a775491.

@mwielgus
Copy link
Contributor

LGTM

@mwielgus mwielgus added the lgtm Indicates that a PR is ready to be merged. label May 16, 2016
@mwielgus mwielgus merged commit c11300a into kubernetes-retired:master May 16, 2016
@huangyuqi
Copy link
Author

thanks so much @mwielgus

@mwielgus
Copy link
Contributor

Thank you too :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet