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

[YUNIKORN-2745] Log analysis adopting loki #456

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

mean-world
Copy link
Contributor

What is this PR for?

example how to get YuniKorn log by Loki and Promtail

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-2745

2. bar chart
![bar_chart](../assets/loki_log_1.png)
3. INFO log
![bar_chart](../assets/loki_log_2.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

![logs trace]


3. Set HTTP headers

set HTTP headers field `X-Scope-OrgId` and set value field `user`
Copy link
Contributor

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.

Copy link
Contributor

@0yukali0 0yukali0 Jul 14, 2024

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
Copy link
Contributor

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

Copy link
Contributor

@0yukali0 0yukali0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM

@0yukali0 0yukali0 merged commit 941f049 into apache:master Jul 15, 2024
1 check passed
github-actions bot pushed a commit to manirajv06/incubator-yunikorn-site that referenced this pull request Jul 17, 2024
github-actions bot pushed a commit to chia7712/yunikorn-site that referenced this pull request Jul 18, 2024
@mean-world mean-world deleted the YUNIKORN-2745 branch August 25, 2024 11:31
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

Successfully merging this pull request may close these issues.

2 participants