Skip to content

Commit 780db8f

Browse files
Fixed panel query for postgresSQL panel
1 parent 727198c commit 780db8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-observability/json/Rds-App.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10277,7 +10277,7 @@
1027710277
"queries": [
1027810278
{
1027910279
"transient": false,
10280-
"queryString": "account={{account}} region={{region}} namespace=aws/rds _sourceHost=/aws/rds/*postgresql dbidentifier={{dbidentifier}} duration\n| json \"message\" nodrop | if (_raw matches \"{*\", message, _raw) as message\n| parse field=message \"* * *:*(*):*@*:[*]:*:*\" as date,time,time_zone,host,thread_id,user,database,processid,severity,msg \n| parse regex field=msg \"duration: (?<execution_time_ms>[\\S]+) ms statement:(?<query>.+)\" \n| where database matches \"{{database}}\" and user matches \"{{user}}\" and host matches \"{{host}}\"\n| number (execution_time_ms)\n| where execution_time_ms > {{slow_query_latency_ms}}\n| parse regex field=query \"(?<command>\\S+)\\s*\"\n| toUppercase(command) as command\n| where (command matches \"*COMM*\" or command matches \"*ROLLB*\" or command matches \"*SAVE*\" or sqlStatement matches \"*COMM*\" or sqlStatement matches \"*ROLLB*\" or sqlStatement matches \"*SAVE*\" or sqlStatement matches \"*SET*TRAN*\")\n| timeslice 15m\n| count as count by _timeslice, user, host, database, command, query\n| sort by _timeslice, command asc\n| limit 20",
10280+
"queryString": "account={{account}} region={{region}} namespace=aws/rds _sourceHost=/aws/rds/*postgresql dbidentifier={{dbidentifier}} duration\n| json \"message\" nodrop | if (_raw matches \"{*\", message, _raw) as message\n| parse field=message \"* * *:*(*):*@*:[*]:*:*\" as date,time,time_zone,host,thread_id,user,database,processid,severity,msg \n| parse regex field=msg \"duration: (?<execution_time_ms>[\\S]+) ms statement:(?<query>.+)\" \n| where database matches \"{{database}}\" and user matches \"{{user}}\" and host matches \"{{host}}\"\n| number (execution_time_ms)\n| where execution_time_ms > {{slow_query_latency_ms}}\n| parse regex field=query \"(?<command>\\S+)\\s*\"\n| toUppercase(command) as command\n| where (command matches \"*COMM*\" or command matches \"*ROLLB*\" or command matches \"*SAVE*\")\n| timeslice 15m\n| count as count by _timeslice, user, host, database, command, query\n| sort by _timeslice, command asc\n| limit 20",
1028110281
"queryType": "Logs",
1028210282
"queryKey": "A",
1028310283
"metricsQueryMode": null,

0 commit comments

Comments
 (0)