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 committed Mar 5, 2024
1 parent a96fbaa commit e515128
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 @@ -56,7 +56,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 e515128

Please sign in to comment.