Skip to content

Commit

Permalink
Revert "PMM-4172 Revert pt-mysql-summary (#600)." (#624)
Browse files Browse the repository at this point in the history
* Revert "Revert "PMM-4172 pt-mysql-summary (#600)" (#623)"

This reverts commit 910a01a.

* PMM-6982 IA settings API (#620)

* PMM-6982 Add comments

* PMM-6982 IA settings API

* PMM-6982 Add initialism

* PMM-6982 Fix typo

* Add summary to Rule (#631)

* PMM-6982 Add API for togging IA (#636)

* PMM-7108 Fix reform version (#638)

* PMM-6827 DB cluster monitoring. (#625)

* PMM-6826 Add disk size to create API.

* PMM-6826 Use bytes instead of megabytes.

* PMM-6826 Make disk size required field.

* PMM-6827 Add public address to Settings API

* PMM-6827 Add ability to remove public address.

* PMM-6827 rename public address to pmm public address.

* PMM-6827 rename public address to pmm public address.

* PMM-6827 Fix merge conflicts.

* PMM-6827 Fix merge conflicts.

Co-authored-by: Alexey Palazhchenko <[email protected]>

* PMM-6983 Add force for unregister k8s (#633)

* PMM-6959 Update API descriptors. (#632)

* PMM-6983 Add bool fields into unregister k8s.

* PMM-6983 Revert api descriptors.

* PMM-6983 Fix.

* PMM-6983 Add comment to force option.

* PMM-6983 Change comment.

Co-authored-by: Nurlan Moldomurov <[email protected]>

* PMM-4172 Renamed address to host.

* PMM-4172 Fix conflict.

* Regenerate

* PMM-4172 Make gen.

Co-authored-by: Jaroslav Musil <[email protected]>
Co-authored-by: Nurlan Moldomurov <[email protected]>
Co-authored-by: JiriCtvrtka <[email protected]>
Co-authored-by: Jaroslav Musil <[email protected]>
Co-authored-by: Jiri Ctvrtka <[email protected]>
  • Loading branch information
6 people authored Feb 22, 2021
1 parent 3ff6c74 commit 37c694d
Show file tree
Hide file tree
Showing 13 changed files with 1,735 additions and 565 deletions.
849 changes: 487 additions & 362 deletions api/agentpb/agent.pb.go

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions api/agentpb/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ message StartActionRequest {
string username = 3;
string password = 4;
}
// PTMySQLSummaryParams describes parameters for PT MySQL summary.
message PTMySQLSummaryParams {
string host = 1;
uint32 port = 2;
string socket = 3;
string username = 4;
string password = 5;
}
// MySQLQueryShowParams describes MySQL SHOW query action parameters.
message MySQLQueryShowParams {
// DSN for the service. May contain connection (dial) timeout.
Expand Down Expand Up @@ -258,6 +266,7 @@ message StartActionRequest {
PTSummaryParams pt_summary_params = 10;
PTPgSummaryParams pt_pg_summary_params = 12;
PTMongoDBSummaryParams pt_mongodb_summary_params = 13;
PTMySQLSummaryParams pt_mysql_summary_params = 11;
MySQLQueryShowParams mysql_query_show_params = 50;
MySQLQuerySelectParams mysql_query_select_params = 51;
PostgreSQLQueryShowParams postgresql_query_show_params = 52;
Expand Down
10 changes: 10 additions & 0 deletions api/agentpb/agent.validator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

616 changes: 413 additions & 203 deletions api/managementpb/actions.pb.go

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions api/managementpb/actions.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions api/managementpb/actions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ enum ActionType {
POSTGRESQL_SHOW_INDEX = 6;
MONGODB_EXPLAIN = 7;
PT_SUMMARY = 8;
PT_MYSQL_SUMMARY = 9;
PT_PG_SUMMARY = 10;
PT_MONGODB_SUMMARY = 11;
}
Expand Down Expand Up @@ -322,6 +323,22 @@ message StartPTMongoDBSummaryActionResponse {
string pmm_agent_id = 2;
}

// Message to prepare pt-mysql-summary data
message StartPTMySQLSummaryActionRequest {
// pmm-agent ID where to run this Action.
string pmm_agent_id = 1;
// Service ID for this Action.
string service_id = 2;
}

// Message to retrieve the prepared pt-mysql-summary data
message StartPTMySQLSummaryActionResponse {
// Unique Action ID.
string action_id = 1;
// pmm-agent ID where to this Action was started.
string pmm_agent_id = 2;
}

message CancelActionRequest {
// Unique Action ID. Required.
string action_id = 1 [
Expand Down Expand Up @@ -426,6 +443,13 @@ service Actions {
body: "*"
};
}
// StartPTMySQLSummaryAction starts pt--mysql-summary Action.
rpc StartPTMySQLSummaryAction(StartPTMySQLSummaryActionRequest) returns (StartPTMySQLSummaryActionResponse) {
option (google.api.http) = {
post: "/v1/management/Actions/StartPTMySQLSummary"
body: "*"
};
}
// CancelAction stops an Action.
rpc CancelAction(CancelActionRequest) returns (CancelActionResponse) {
option (google.api.http) = {
Expand Down
6 changes: 6 additions & 0 deletions api/managementpb/actions.validator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions api/managementpb/json/client/actions/actions_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 37c694d

Please sign in to comment.