-
Notifications
You must be signed in to change notification settings - Fork 336
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
feat(kumactl) add install loki for log aggregation #820
feat(kumactl) add install loki for log aggregation #820
Conversation
Follow up on the meeting of the 2020/06/10: QuestionCan we use Loki and Grafana to aggregate and visualise TrafficLogs ? ResponseHere are the steps of my test: Step 1: Access logs in default formatMy first try was to make the data-planes send the Access Logs to
That worked well I get the Access Logs with the default format. Step 2: Access logs in custom formatMy second test was to use a custom format for my Access Logs
When I use the Step 3: Back to the default formatThis is where this test becomes weird. ConclusionIt looks like using a custom format with the |
Try to put the new line in the format. Something like this:
or
|
I'll try that thank you. |
This works (not the other option). |
To be honest, I'll be willing to add the new line automatically in I see we do it in default format. I'd suggest a change so instead of doing it only for default format, we add it for all formats, even ones provided by the user. |
e7752c4
to
6a406c4
Compare
I think adding automatically a new line for all formats is a good idea. |
I think Also I think that in result of this change, the line |
With the TrafficLog policy, using a custom format with the `type: file` makes the data-planes concatenate all the Access Logs until a new Log is generated. This bug is not observed when omiting the format. This is fixed by addind a new line after each Access Log. For more informations see kumahq#820
With the TrafficLog policy, using a custom format with the `type: file` makes the data-planes concatenate all the Access Logs until a new Log is generated. This bug is not observed when omiting the format. This is fixed by addind a new line after each Access Log. For more informations see kumahq#820
3eb51b7
to
a8567bf
Compare
@xbauquet , Imports are not ordered. try to run |
This is the documentation for the kuma#820 PR adding the yamls to install Loki and aggregate logs. * PR: https://github.com/Kong/kuma/pull/820/
Documentation PR: kumahq/kuma-website#222 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I am OK with this one, especially now that we have docs alongside.
One small question - how can that be replicated for universal? we don't have the nice installation with kumactl there, yet people may want to also have access to this feature? Or maybe this is a matter of updating docs?
@@ -30,7 +30,7 @@ func (s *sender) Connect() error { | |||
} | |||
|
|||
func (s *sender) Send(record string) error { | |||
_, err := s.conn.Write(append([]byte(record), byte('\n'))) | |||
_, err := s.conn.Write([]byte(record)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakubdyszkiewicz what do you think?
I just looked at the Loki documentation and it is possible to install it without Kubernetes so I guess I could do a bit of doc on how to install it for universal or at least add some links to help people installing it. |
Can you also:
Thanks a lot for your contributions! |
With the TrafficLog policy, using a custom format with the `type: file` makes the data-planes concatenate all the Access Logs until a new Log is generated. This bug is not observed when omiting the format. This is fixed by addind a new line after each Access Log. For more informations see kumahq#820
e2aa4ed
to
316ed0c
Compare
I opened a issue #841 because I have a problem when trying to fix tests. |
Add the Loki stack to `kumactl install` allowing to see logs directly in Grafana. The yaml for loki was inspired by: `https://grafana.github.io/loki/charts` * Add a new install command to kubectl: `kubectl install logging` * Upgrate Grafana version to 7.0.3 that accepts loki as a data source.
With the TrafficLog policy, using a custom format with the `type: file` makes the data-planes concatenate all the Access Logs until a new Log is generated. This bug is not observed when omiting the format. This is fixed by addind a new line after each Access Log. For more informations see kumahq#820
316ed0c
to
19cb442
Compare
@nickolaev I corrected all the tests I could. I still see a few problems in Circle CI but I don't understand the problem. |
@xbauquet CI is sometimes flaky. I re-run the failing tests and all is fine now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am willing to move this one, once the docs get moved to 0.6.0. Thanks for the contribution!
@@ -263,7 +263,7 @@ spec: | |||
runAsUser: 472 | |||
containers: | |||
- name: grafana | |||
image: "grafana/grafana:6.6.0" | |||
image: "grafana/grafana:7.0.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please bump the version to 7.0.5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge master
and do bump grafana to 7.0.5
.
We are merging this one!
Summary
Add the Loki stack to
kumactl install
allowing to see logsdirectly in Grafana. The yaml for loki was inspired by:
https://grafana.github.io/loki/charts
Full changelog
kubectl install logging
data source.
Issues resolved
#819
Documentation
Documentation PR: kumahq/kuma-website#222