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
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