Skip to content

Commit

Permalink
Revert "PMM-6462 pg_stat_monitor API (#573)" (#578)
Browse files Browse the repository at this point in the history
This reverts commit a85aff6.
  • Loading branch information
AlekSi authored Sep 10, 2020
1 parent 0512c2d commit 9c18b0d
Show file tree
Hide file tree
Showing 17 changed files with 702 additions and 864 deletions.
1 change: 0 additions & 1 deletion api/agentlocalpb/json/agentlocalpb.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@
"QAN_MYSQL_SLOWLOG_AGENT",
"QAN_MONGODB_PROFILER_AGENT",
"QAN_POSTGRESQL_PGSTATEMENTS_AGENT",
"QAN_POSTGRESQL_PGSTATMONITOR_AGENT",
"RDS_EXPORTER",
"EXTERNAL_EXPORTER"
],
Expand Down
7 changes: 2 additions & 5 deletions api/agentlocalpb/json/client/agent_local/status_responses.go

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

367 changes: 165 additions & 202 deletions api/agentpb/collector.pb.go

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions api/agentpb/collector.proto
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,6 @@ message MetricsBucket {
float m_blk_write_time_cnt = 25;
// Total time the statement spent writing blocks, in milliseconds (if track_io_timing is enabled, otherwise zero).
float m_blk_write_time_sum = 26;
float m_cpu_user_time_cnt = 27;
// Total time user spent in query.
float m_cpu_user_time_sum = 28;
float m_cpu_sys_time_cnt = 29;
// Total time system spent in query.
float m_cpu_sys_time_sum = 30;
}
Common common = 1;
MySQL mysql = 2;
Expand Down
498 changes: 247 additions & 251 deletions api/inventorypb/agents.pb.go

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion api/inventorypb/agents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ enum AgentType {
QAN_MYSQL_SLOWLOG_AGENT = 8;
QAN_MONGODB_PROFILER_AGENT = 9;
QAN_POSTGRESQL_PGSTATEMENTS_AGENT = 10;
QAN_POSTGRESQL_PGSTATMONITOR_AGENT = 13;
RDS_EXPORTER = 11;
EXTERNAL_EXPORTER = 12;
}
Expand Down
7 changes: 2 additions & 5 deletions api/inventorypb/json/client/agents/list_agents_responses.go

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

1 change: 0 additions & 1 deletion api/inventorypb/json/inventorypb.json
Original file line number Diff line number Diff line change
Expand Up @@ -5027,7 +5027,6 @@
"QAN_MYSQL_SLOWLOG_AGENT",
"QAN_MONGODB_PROFILER_AGENT",
"QAN_POSTGRESQL_PGSTATEMENTS_AGENT",
"QAN_POSTGRESQL_PGSTATMONITOR_AGENT",
"RDS_EXPORTER",
"EXTERNAL_EXPORTER"
],
Expand Down
50 changes: 24 additions & 26 deletions api/inventorypb/types/agent_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,34 @@ import "fmt"

// this list should be in sync with inventorypb/agents.pb.go
const (
AgentTypePMMAgent = "PMM_AGENT"
AgentTypeNodeExporter = "NODE_EXPORTER"
AgentTypeMySQLdExporter = "MYSQLD_EXPORTER"
AgentTypeMongoDBExporter = "MONGODB_EXPORTER"
AgentTypePostgresExporter = "POSTGRES_EXPORTER"
AgentTypeProxySQLExporter = "PROXYSQL_EXPORTER"
AgentTypeQANMySQLPerfSchemaAgent = "QAN_MYSQL_PERFSCHEMA_AGENT"
AgentTypeQANMySQLSlowlogAgent = "QAN_MYSQL_SLOWLOG_AGENT"
AgentTypeQANMongoDBProfilerAgent = "QAN_MONGODB_PROFILER_AGENT"
AgentTypeQANPostgreSQLPgStatementsAgent = "QAN_POSTGRESQL_PGSTATEMENTS_AGENT"
AgentTypeQANPostgreSQLPgStatMonitorAgent = "QAN_POSTGRESQL_PGSTATMONITOR_AGENT"
AgentTypeRDSExporter = "RDS_EXPORTER"
AgentTypeExternalExporter = "EXTERNAL_EXPORTER"
AgentTypePMMAgent = "PMM_AGENT"
AgentTypeNodeExporter = "NODE_EXPORTER"
AgentTypeMySQLdExporter = "MYSQLD_EXPORTER"
AgentTypeMongoDBExporter = "MONGODB_EXPORTER"
AgentTypePostgresExporter = "POSTGRES_EXPORTER"
AgentTypeProxySQLExporter = "PROXYSQL_EXPORTER"
AgentTypeQANMySQLPerfSchemaAgent = "QAN_MYSQL_PERFSCHEMA_AGENT"
AgentTypeQANMySQLSlowlogAgent = "QAN_MYSQL_SLOWLOG_AGENT"
AgentTypeQANMongoDBProfilerAgent = "QAN_MONGODB_PROFILER_AGENT"
AgentTypeQANPostgreSQLPgStatementsAgent = "QAN_POSTGRESQL_PGSTATEMENTS_AGENT"
AgentTypeRDSExporter = "RDS_EXPORTER"
AgentTypeExternalExporter = "EXTERNAL_EXPORTER"
)

var agentTypeNames = map[string]string{
// no invalid
AgentTypePMMAgent: "pmm_agent",
AgentTypeNodeExporter: "node_exporter",
AgentTypeMySQLdExporter: "mysqld_exporter",
AgentTypeMongoDBExporter: "mongodb_exporter",
AgentTypePostgresExporter: "postgres_exporter",
AgentTypeProxySQLExporter: "proxysql_exporter",
AgentTypeQANMySQLPerfSchemaAgent: "mysql_perfschema_agent",
AgentTypeQANMySQLSlowlogAgent: "mysql_slowlog_agent",
AgentTypeQANMongoDBProfilerAgent: "mongodb_profiler_agent",
AgentTypeQANPostgreSQLPgStatementsAgent: "postgresql_pgstatements_agent",
AgentTypeQANPostgreSQLPgStatMonitorAgent: "postgresql_pgstatmonitor_agent",
AgentTypeRDSExporter: "rds_exporter",
AgentTypeExternalExporter: "external-exporter",
AgentTypePMMAgent: "pmm_agent",
AgentTypeNodeExporter: "node_exporter",
AgentTypeMySQLdExporter: "mysqld_exporter",
AgentTypeMongoDBExporter: "mongodb_exporter",
AgentTypePostgresExporter: "postgres_exporter",
AgentTypeProxySQLExporter: "proxysql_exporter",
AgentTypeQANMySQLPerfSchemaAgent: "mysql_perfschema_agent",
AgentTypeQANMySQLSlowlogAgent: "mysql_slowlog_agent",
AgentTypeQANMongoDBProfilerAgent: "mongodb_profiler_agent",
AgentTypeQANPostgreSQLPgStatementsAgent: "postgresql_pgstatements_agent",
AgentTypeRDSExporter: "rds_exporter",
AgentTypeExternalExporter: "external-exporter",
}

// AgentTypeName returns human friendly agent type to be used in reports
Expand Down
Loading

0 comments on commit 9c18b0d

Please sign in to comment.