-
Notifications
You must be signed in to change notification settings - Fork 79
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
[YUNIKORN-2745] Log analysis adopting loki #456
Conversation
docs/user_guide/loki.md
Outdated
2. bar chart | ||
![bar_chart](../assets/loki_log_1.png) | ||
3. INFO log | ||
![bar_chart](../assets/loki_log_2.png) |
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.
![logs trace]
docs/user_guide/loki.md
Outdated
|
||
3. Set HTTP headers | ||
|
||
set HTTP headers field `X-Scope-OrgId` and set value field `user` |
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.
In order to fetch logs from promtail which tenantID is user
, set HTTP headers field X-Scope-OrgId
with user
.
kubectl port-forward -n meta service/grafana 3000:3000 | ||
``` | ||
After running port forwarding, you can access Grafana's web interface by [localhost:3000](http://localhost:3000) in your browser. | ||
|
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.
New a description of following steps.
"In grafana, adding a loki data source with url and http headers allows grafana to fetch logs."
kubectl patch configmap yunikorn-defaults -n yunikorn --patch '{"data":{"admissionController.accessControl.systemUsers": "^system:serviceaccount:kube-system:,^system:serviceaccount:meta:"}}' | ||
``` | ||
|
||
## Install Grafana |
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.
Hi @mean-world
This tutorial adopts grafana helm chart instead of prometheus stack helm chart.
We should be going to adopt same grafana installation in documentations about prometheus, loki and grafana.
We can do that in YUNIKORN-2747
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.
+1 LGTM
What is this PR for?
example how to get YuniKorn log by Loki and Promtail
What type of PR is it?
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2745