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

FaaS-Cli unable to fetch logs #5

Open
dhyanes opened this issue Feb 17, 2021 · 0 comments
Open

FaaS-Cli unable to fetch logs #5

dhyanes opened this issue Feb 17, 2021 · 0 comments

Comments

@dhyanes
Copy link

dhyanes commented Feb 17, 2021

Hi Team

In Doc we set loki url with 3100 port but in the code service is exposed using 9191.Which one is the right port for configuring.

In my configuration i have used 9191 port throughout and it gets successfully deployed without any error . When i tried to get get logs of function from openfaas using faas-cli command i didnt get any error or output .When checked for error in openfaas-loki podi logs there is no error request passed successfully

time="2021-02-16T07:06:31Z" level=debug msg=configuration log-level=DEBUG port=9191 timeout=30s url="http://ofloki-openfaas-loki.xaas-faas.svc.cluster.local:9191"
time="2021-02-16T07:06:31Z" level=info msg="starting server at :9191\n"
time="2021-02-16T07:08:30Z" level=debug msg="name: nodeinfo namespace: xaas-faas instance: since: tail: 3 follow: true => {{faas_function="nodeinfo"} 3 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC FORWARD}" method=buildRequest
time="2021-02-16T07:08:30Z" level=debug msg="http://ofloki-openfaas-loki.xaas-faas.svc.cluster.local:9191/api/prom/query?direction=FORWARD&limit=3&query=%7Bfaas_function%3D%22nodeinfo%22%7D" method=doRequest
time="2021-02-16T07:08:30Z" level=debug msg="all streams closed" method=Query name=nodeinfo
2021/02/16 07:08:30 LogHandler: end of log stream

faas-cli command

**❯ echo "" | faas-cli invoke nodeinfo --gateway URL --tls-no-verify
Hostname: nodeinfo-5bc455bdf9-wjmbj

Arch: x64
CPUs: 2
Total mem: 7719MB
Platform: linux
Uptime: 45970

❯ faas-cli logs nodeinfo --tail=3 --gateway URL --tls-no-verify****

No error message and logs.

.I have updated ingress entry for loki in openfaas-ingress and also added openfaas-loki URL in openfaas values.yaml

But I am not able to fetch the logs from open-faas . Please help us to trobuleshoot the issue

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

1 participant