Set the application name
It is best practice to set the application name with CockroachDB. You can do this in the connection stringpostgres://root@<servername:26257/mydb?application_name=movr_app or at the session level:
Filter database workloads by application name
Once you set the application name, the DB Console lets you filter database workloads by application name.
crdb_internal tables crdb_internal.statement_statistics and crdb_internal.transaction_statistics by application name. This example shows the first 60 characters of query text and statement statistics for queries associated with the movr_app application:

