Skip to content

Commit

Permalink
PMM-5784 pt-pg-summary. (#614)
Browse files Browse the repository at this point in the history
* PMM-5784 Created structures for pt-pg-summary.

* 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-5784 Updated.

* 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-5784 Removed pt-mysql-summary references.

* PMM-5784 Renamed address to host, and PgSQL to Pg.

* PMM-5784 Added missing type.

Co-authored-by: Jaroslav Musil <[email protected]>
Co-authored-by: Alexey Palazhchenko <[email protected]>
Co-authored-by: Nurlan Moldomurov <[email protected]>
Co-authored-by: JiriCtvrtka <[email protected]>
Co-authored-by: Jiri Ctvrtka <[email protected]>
  • Loading branch information
6 people authored Feb 22, 2021
1 parent 7910ea5 commit 3ff6c74
Show file tree
Hide file tree
Showing 13 changed files with 1,653 additions and 491 deletions.
660 changes: 387 additions & 273 deletions api/agentpb/agent.pb.go

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions api/agentpb/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ message StartActionRequest {
// PTSummaryParams describes parameters for PT summary.
message PTSummaryParams {}

// PTPgSummaryParams describes parameters for PT PG summary.
message PTPgSummaryParams {
string host = 1;
uint32 port = 2;
string username = 3;
string password = 4;
}
// PTMongoDBSummaryParams describes parameters for PT MongoDB summary.
message PTMongoDBSummaryParams {
string host = 1;
Expand Down Expand Up @@ -249,6 +256,7 @@ message StartActionRequest {
PostgreSQLShowIndexParams postgresql_show_index_params = 7;
MongoDBExplainParams mongodb_explain_params = 8;
PTSummaryParams pt_summary_params = 10;
PTPgSummaryParams pt_pg_summary_params = 12;
PTMongoDBSummaryParams pt_mongodb_summary_params = 13;
MySQLQueryShowParams mysql_query_show_params = 50;
MySQLQuerySelectParams mysql_query_select_params = 51;
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.

649 changes: 431 additions & 218 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.

25 changes: 25 additions & 0 deletions api/managementpb/actions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ enum ActionType {
POSTGRESQL_SHOW_INDEX = 6;
MONGODB_EXPLAIN = 7;
PT_SUMMARY = 8;
PT_PG_SUMMARY = 10;
PT_MONGODB_SUMMARY = 11;
}

message GetActionRequest {
Expand Down Expand Up @@ -288,6 +290,22 @@ message StartPTSummaryActionResponse {
string pmm_agent_id = 2;
}

// Message to prepare pt-pg-summary data
message StartPTPgSummaryActionRequest {
// 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-pg-summary data
message StartPTPgSummaryActionResponse {
// Unique Action ID.
string action_id = 1;
// pmm-agent ID where to this Action was started.
string pmm_agent_id = 2;
}

// Message to prepare pt-mongodb-summary data
message StartPTMongoDBSummaryActionRequest {
// pmm-agent ID where to run this Action.
Expand Down Expand Up @@ -394,6 +412,13 @@ service Actions {
body: "*"
};
}
// StartPTPgSummaryAction starts pt-pg-summary Action.
rpc StartPTPgSummaryAction(StartPTPgSummaryActionRequest) returns (StartPTPgSummaryActionResponse) {
option (google.api.http) = {
post: "/v1/management/Actions/StartPTPgSummary"
body: "*"
};
}
// StartPTMongoDBSummaryAction starts pt-mongodb-summary Action.
rpc StartPTMongoDBSummaryAction(StartPTMongoDBSummaryActionRequest) returns (StartPTMongoDBSummaryActionResponse) {
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 3ff6c74

Please sign in to comment.