Examples of configurations to make things easier.

This commit is contained in:
Pablo Martin 2022-07-21 18:35:34 +02:00
parent 1bc6306cf2
commit c1792ef245
4 changed files with 79 additions and 8 deletions

View file

@ -0,0 +1,27 @@
{
"connection_details": {
"engine": "mysql",
"host": "the-actual-host",
"port": 3306,
"user": "your_user",
"password": "your_password",
"schema": "comprea",
"ssh_tunneling": {
"use_tunnel": true,
"ssh_host": "the_ssh_tunnel_host",
"ssh_username": "the_ssh_tunnel_user",
"ssh_port": 22,
"path_to_key": "G:\\path\\to\\ssh\\key.pem"
}
},
"queries_to_measure": [
{
"name": "Fast Smoke Test",
"query_string": "SELECT 1"
},
{
"name": "Delivered carts on a day",
"query_string": "select * from comprea.cart c where c.status = 'delivered' and c.date_delivered >= UNIX_TIMESTAMP(date('2022-05-24'))"
}
]
}

View file

@ -0,0 +1,22 @@
{
"connection_details": {
"engine": "mysql",
"host": "the-sql-host",
"port": 3306,
"user": "your_user",
"password": "your_password",
"schema": "comprea",
"ssh_tunneling": {
"use_tunnel": false
},
"queries_to_measure": [
{
"name": "Fast Smoke Test",
"query_string": "SELECT 1"
},
{
"name": "Delivered carts on a day",
"query_string": "select * from comprea.cart c where c.status = 'delivered' and c.date_delivered >= UNIX_TIMESTAMP(date('2022-05-24'))"
}
]
}

View file

@ -0,0 +1,22 @@
{
"connection_details": {
"engine": "trino",
"host": "the_trino_host",
"port": "443",
"user": "your_user",
"password": "your_password",
"http_scheme": "https",
"catalog": "app_lm_mysql",
"schema": "comprea"
},
"queries_to_measure": [
{
"name": "Fast Smoke Test",
"query_string": "SELECT * FROM system.runtime.nodes"
},
{
"name": "Delivered carts on a day",
"query_string": "select * from app_lm_mysql.comprea.cart c where c.status = 'delivered' and c.date_delivered >= to_unixtime(date('2022-05-24'))"
}
]
}