Skip to content

Commit

Permalink
PMM-12952 Use PG Stat Monitor by default (#715)
Browse files Browse the repository at this point in the history
* PMM-12952 Use PG Stat Monitor by default

* PMM-12952 Show PG Stat Monitor option for azure and RDS

* PMM-12952 Fix unit test

* PMM-12952 Use correct payload

* PMM-12952 Default to pg stat statements for RDS and Azure

* PMM-12952 Fix unit test & cleanup
  • Loading branch information
matejkubinec authored Mar 5, 2024
1 parent 056d5f1 commit e7d68c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const AddRemoteInstance: FC<AddRemoteInstanceProps> = ({
}

if (type === Databases.postgresql) {
initialValues.tracking = TrackingOptions.pgStatements;
initialValues.tracking =
remoteInstanceCredentials.isAzure || remoteInstanceCredentials.isRDS
? TrackingOptions.pgStatements
: TrackingOptions.pgMonitor;
initialValues.disable_comments_parsing = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RemoteInstanceCredentials, InstanceAvailable, SelectInstance } from 'ap
export interface FormValues extends RemoteInstanceCredentials {
qan_mysql_perfschema?: boolean;
disable_comments_parsing?: boolean;
tracking?: 'qan_postgresql_pgstatements_agent';
tracking?: TrackingOptions;
}

export enum TrackingOptions {
Expand Down

0 comments on commit e7d68c7

Please sign in to comment.