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

Loki exits when the configured jaeger is not present #1397

Closed
davkal opened this issue Dec 10, 2019 · 4 comments · Fixed by #1789
Closed

Loki exits when the configured jaeger is not present #1397

davkal opened this issue Dec 10, 2019 · 4 comments · Fixed by #1789
Labels
component/loki good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! keepalive An issue or PR that will be kept alive and never marked as stale. type/bug Somehing is not working as expected

Comments

@davkal
Copy link
Contributor

davkal commented Dec 10, 2019

I'd argue that Loki should not just exit when a configured jaeger is not present.

This came up when testing loki and jaeger together in the grafana's devenv docker-compose snippets: Loki would no longer start on its own, and I had to remove the env vars: grafana/grafana#20967

Here is the docker compose output:

loki_1         | Could not initialize jaeger tracer: lookup jaeger on 127.0.0.11:53: no such host
@cyriltovena cyriltovena added keepalive An issue or PR that will be kept alive and never marked as stale. component/loki good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/bug labels Dec 11, 2019
@yindia
Copy link
Contributor

yindia commented Dec 13, 2019

@cyriltovena Would like to work on this. Can this be assigned to me ? I also need small brief

@adityacs
Copy link
Contributor

adityacs commented Feb 19, 2020

@cyriltovena @davkal The code here https://github.com/weaveworks/common/blob/master/tracing/tracing.go#L19 is doing os.Exit(1) which fails loki as well on jaeger not being available.

How should we see this for loki?

Currently we don't have any retry logic to connect to jaeger when it comes up. So, when we start loki without jaeger being present and later when jaegar comes up, loki won't connect to jaeger. May be we should add this logic in turn through this https://github.com/weaveworks/common/blob/master/tracing/tracing.go ?

OR

Don't disturb the weaveworks/common logic. Let it be the way it is. We can handle this from loki side to check if the configured jaeger agent is present and then call weaverworks/common logic to initialize jaeger?

@adityacs
Copy link
Contributor

@cyriltovena Kindly let me know your thoughts on this

@cyriltovena
Copy link
Contributor

cyriltovena commented Feb 25, 2020

I think we should change the common project to return an error and not os.Exit, this consumer of the API can decide what to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/loki good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! keepalive An issue or PR that will be kept alive and never marked as stale. type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants