Closed alexellis closed 4 years ago
I will bump to 1.14
@alexellis i pushed a new tag theaxer/openfaas-loki:v1.5.0
based on d42d11f0c62201b6aa16063b5da81c81d941c03a
This updates to latest Go (1.14), Alpine (3.11), and the latest Loki module (1.5.0)
I plan to match the docker tags with the loki tags so make it pick a tag to deploy with the loki version. Fortunately the API request o Loki hasn't really changed so this version should just work (at least it did for me).
$ faas-cli logs figlet
WARNING! Communication is not secure, please consider using HTTPS. Letsencrypt.org offers free SSL/TLS certificates.
2020-05-27T18:30:17Z 2020-05-27T18:30:13.2315689Z stderr F 2020/05/27 18:30:13 Version: 0.13.0 SHA: fa93655d90d1518b04e7cfca7d7548d7d133a34e
2020-05-27T18:30:17Z 2020-05-27T18:30:13.231987Z stderr F 2020/05/27 18:30:13 Read/write timeout: 5s, 5s. Port: 8080
2020-05-27T18:30:17Z 2020-05-27T18:30:13.2324622Z stderr F 2020/05/27 18:30:13 Writing lock-file to: /tmp/.lock
2020-05-27T18:30:17Z 2020-05-27T18:30:13.2327585Z stderr F 2020/05/27 18:30:13 Metrics server. Port: 8081
2020-05-27T18:30:26Z 2020-05-27T18:30:26.9224604Z stderr F 2020/05/27 18:30:26 Forking fprocess.
2020-05-27T18:30:27Z 2020-05-27T18:30:26.9258493Z stderr F 2020/05/27 18:30:26 Wrote 192 Bytes - Duration: 0.003589 seconds
2020-05-27T18:35:00Z 2020-05-27T18:35:00.3323993Z stderr F 2020/05/27 18:35:00 Forking fprocess.
2020-05-27T18:35:00Z 2020-05-27T18:35:00.3345683Z stderr F 2020/05/27 18:35:00 Wrote 360 Bytes - Duration: 0.002344 seconds
2020-05-27T18:35:02Z 2020-05-27T18:35:02.4350005Z stderr F 2020/05/27 18:35:02 Forking fprocess.
2020-05-27T18:35:02Z 2020-05-27T18:35:02.4377111Z stderr F 2020/05/27 18:35:02 Wrote 540 Bytes - Duration: 0.003494 seconds
2020-05-27T18:35:05Z 2020-05-27T18:35:05.616174Z stderr F 2020/05/27 18:35:05 Forking fprocess.
2020-05-27T18:35:05Z 2020-05-27T18:35:05.6199858Z stderr F 2020/05/27 18:35:05 Wrote 1092 Bytes - Duration: 0.003854 seconds
$ kubectl logs deploy/ofloki-openfaas-loki
time="2020-05-27T18:33:32Z" level=debug msg=configuration log-level=DEBUG port=9191 timeout=30s url="http://loki.default:3100"
time="2020-05-27T18:33:32Z" level=info msg="starting server at :9191\n"
time="2020-05-27T18:33:43Z" level=debug msg="name: figlet namespace: instance: since: <nil> tail: -1 follow: true => {{faas_function=\"figlet\"} 0 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC FORWARD}" method=buildRequest
time="2020-05-27T18:33:43Z" level=debug msg="http://loki.default:3100/api/prom/query?direction=FORWARD&query=%7Bfaas_function%3D%22figlet%22%7D" method=doRequest
time="2020-05-27T18:33:43Z" level=debug msg="starting stream" method=Query name=figlet
time="2020-05-27T18:33:43Z" level=debug msg="{container=\"figlet\", faas_function=\"figlet\", filename=\"/var/log/pods/openfaas-fn_figlet-6d678b8cb6-hrhst_0019493d-8528-4802-94df-e0678785491e/figlet/0.log\", job=\"openfaas-fn/figlet\", namespace=\"openfaas-fn\", pod=\"figlet-6d678b8cb6-hrhst\", pod_template_hash=\"6d678b8cb6\"}" method=parseLabels
time="2020-05-27T18:33:43Z" level=debug msg="all streams closed" method=Query name=figlet
2020/05/27 18:33:43 LogHandler: end of log stream
Sounds good to me.
Hi Lucas, do you have time to update to Go 1.13 and to test with the latest Loki helm chart? We have opened an arkade app to offer Loki as an app and would like to offer openfaas-loki to users too.
https://github.com/alexellis/arkade/issues/115
Let me know your thoughts
Alex