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

Display Data Node Logs #19352

Merged
merged 13 commits into from
May 17, 2024
Merged

Display Data Node Logs #19352

merged 13 commits into from
May 17, 2024

Conversation

gally47
Copy link
Contributor

@gally47 gally47 commented May 15, 2024

Screenshot 2024-05-15 at 17 20 56

Screenshot 2024-05-15 at 18 28 10

Screenshot 2024-05-15 at 18 28 29

Motivation and Context

fixes #17730

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@gally47 gally47 self-assigned this May 15, 2024
@gally47 gally47 changed the title Data Node Logs Display Data Node Logs May 15, 2024
Copy link
Contributor

@moesterheld moesterheld left a comment

Choose a reason for hiding this comment

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

Backend changes lgtm.
Tested frontend with two running data nodes. Logs accessible from dropdown and button and displayed correctly.

Copy link
Contributor

@ousmaneo ousmaneo left a comment

Choose a reason for hiding this comment

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

Hi, overall it looks good ! I added some suggestion inline.

<Button active={logsType === 'stderr'} onClick={() => setLogsType('stderr')}>STDERR</Button>
</ButtonGroup>
<pre>
{logs[logsType] ? (
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should extract this section to DataNodeLogsView and use the hook in there so that the Actions component is cleaner.

<Modal.Title>{dataNode.hostname} logs</Modal.Title>
</Modal.Header>
<Modal.Body>
<ButtonGroup>
Copy link
Contributor

Choose a reason for hiding this comment

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

We should also use the SegmentedControl here.

@gally47 gally47 requested a review from ousmaneo May 17, 2024 13:06
Copy link
Contributor

@ousmaneo ousmaneo left a comment

Choose a reason for hiding this comment

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

LGTM!

@gally47 gally47 merged commit 0b664a6 into master May 17, 2024
6 checks passed
@gally47 gally47 deleted the fix-17730 branch May 17, 2024 14:38
ousmaneo pushed a commit that referenced this pull request May 24, 2024
* DataNodeLogs initial setup

* changelog file

* Allow proxy access to datanode logs by default

* Fix repsonse content type of not allowed proxy requests

* show data node logs

* close logs dialog on backdrop click

* get the logs until one clicks "Show logs"

* added review changes

---------

Co-authored-by: Tomas Dvorak <tomas.dvorak@graylog.com>
ousmaneo pushed a commit that referenced this pull request May 29, 2024
* DataNodeLogs initial setup

* changelog file

* Allow proxy access to datanode logs by default

* Fix repsonse content type of not allowed proxy requests

* show data node logs

* close logs dialog on backdrop click

* get the logs until one clicks "Show logs"

* added review changes

---------

Co-authored-by: Tomas Dvorak <tomas.dvorak@graylog.com>
ousmaneo pushed a commit that referenced this pull request Jun 4, 2024
* DataNodeLogs initial setup

* changelog file

* Allow proxy access to datanode logs by default

* Fix repsonse content type of not allowed proxy requests

* show data node logs

* close logs dialog on backdrop click

* get the logs until one clicks "Show logs"

* added review changes

---------

Co-authored-by: Tomas Dvorak <tomas.dvorak@graylog.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose Logs of OpenSearch
4 participants