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

PMM-5492 Adding pprof query parameter to /logs.zip #893

Merged
merged 20 commits into from
Jul 18, 2022
Merged

Conversation

pkadej
Copy link
Contributor

@pkadej pkadej commented May 13, 2022

PMM-5492 Add Pprof data to logs.zip

Build: SUBMODULES-2574

@pkadej pkadej marked this pull request as ready for review May 30, 2022 22:20
@pkadej pkadej requested a review from BupycHuk as a code owner May 30, 2022 22:20
BupycHuk
BupycHuk previously approved these changes Jun 6, 2022
@@ -17,6 +17,15 @@
"description": "Returns the PMM Server logs.",
"summary": "Logs",
"operationId": "Logs",
"parameters": [
{
"type": "integer",
Copy link
Member

Choose a reason for hiding this comment

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

can we replace it with a boolean type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BupycHuk
In JIRA ticket, we have: "User calls /logs.zip endpoint with pprof=1 query parameter" that's why I used integer here. Shall I update JIRA ticket as well?

Copy link
Member

Choose a reason for hiding this comment

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

boolean supports pprof=1 as well and makes more sense

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for clarification. Changed.

@pkadej pkadej requested a review from BupycHuk June 13, 2022 15:24
@pkadej pkadej requested a review from artemgavrilov as a code owner July 3, 2022 15:48
@pkadej
Copy link
Contributor Author

pkadej commented Jul 3, 2022

Updated with changes from pmm-managed's PR (which has archived repository): https://github.com/percona/pmm-managed/pull/1117/commits

@pkadej pkadej requested a review from BupycHuk July 3, 2022 17:07
admin/commands/summary.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof_config.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof_config.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof_config.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof.go Outdated Show resolved Hide resolved
managed/utils/pprof/pprof.go Outdated Show resolved Hide resolved
@pkadej pkadej requested a review from artemgavrilov July 11, 2022 18:49
@pkadej pkadej requested a review from a user July 12, 2022 18:56
@ghost
Copy link

ghost commented Jul 18, 2022

@pkadej can you please take a look at why the managed tests are failing and increase the timeout if needed?

@pkadej pkadej force-pushed the PMM-5492-pprof-support branch from 87dcaa9 to ec5ad60 Compare July 18, 2022 11:09
@pkadej
Copy link
Contributor Author

pkadej commented Jul 18, 2022

@michal-kralik The problem wasn't PR related. Retriggered CI.

@pkadej pkadej merged commit 4cf0d83 into main Jul 18, 2022
@pkadej pkadej deleted the PMM-5492-pprof-support branch July 18, 2022 13:25
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.

3 participants