|
15 | 15 | } |
16 | 16 | ] |
17 | 17 | }, |
18 | | - "description": "", |
19 | 18 | "editable": true, |
20 | 19 | "fiscalYearStartMonth": 0, |
21 | 20 | "graphTooltip": 0, |
| 21 | + "id": 3, |
22 | 22 | "links": [], |
23 | 23 | "panels": [ |
24 | 24 | { |
|
35 | 35 | "custom": { |
36 | 36 | "align": "auto", |
37 | 37 | "cellOptions": { |
38 | | - "type": "auto" |
| 38 | + "type": "auto", |
| 39 | + "wrapText": true |
39 | 40 | }, |
40 | 41 | "inspect": false |
41 | 42 | }, |
|
97 | 98 | "properties": [ |
98 | 99 | { |
99 | 100 | "id": "unit", |
100 | | - "value": "short" |
101 | | - }, |
102 | | - { |
103 | | - "id": "decimals", |
104 | | - "value": 2 |
| 101 | + "value": "string" |
105 | 102 | }, |
106 | 103 | { |
107 | 104 | "id": "links", |
108 | 105 | "value": [ |
109 | 106 | { |
110 | 107 | "targetBlank": true, |
111 | 108 | "title": "Go to Query Details dash", |
112 | | - "url": "/d/single-query-details?var-dbname=$dbname&var-queryid=$__cell" |
| 109 | + "url": "/d/single-query-details?var-dbname=$dbname&var-queryid=${__data.fields.queryid}&${__url_time_range}" |
113 | 110 | } |
114 | 111 | ] |
115 | 112 | }, |
116 | 113 | { |
117 | 114 | "id": "custom.align" |
| 115 | + }, |
| 116 | + { |
| 117 | + "id": "custom.width", |
| 118 | + "value": 100 |
118 | 119 | } |
119 | 120 | ] |
120 | 121 | }, |
|
132 | 133 | "id": "custom.align" |
133 | 134 | } |
134 | 135 | ] |
| 136 | + }, |
| 137 | + { |
| 138 | + "matcher": { |
| 139 | + "id": "byName", |
| 140 | + "options": "query" |
| 141 | + }, |
| 142 | + "properties": [ |
| 143 | + { |
| 144 | + "id": "custom.cellOptions", |
| 145 | + "value": { |
| 146 | + "type": "color-text" |
| 147 | + } |
| 148 | + } |
| 149 | + ] |
135 | 150 | } |
136 | 151 | ] |
137 | 152 | }, |
|
146 | 161 | "cellHeight": "sm", |
147 | 162 | "footer": { |
148 | 163 | "countRows": false, |
| 164 | + "enablePagination": true, |
149 | 165 | "fields": "", |
150 | 166 | "reducer": [ |
151 | 167 | "sum" |
152 | 168 | ], |
153 | 169 | "show": false |
154 | 170 | }, |
155 | | - "showHeader": true |
| 171 | + "showHeader": true, |
| 172 | + "sortBy": [ |
| 173 | + { |
| 174 | + "desc": true, |
| 175 | + "displayName": "total_time" |
| 176 | + } |
| 177 | + ] |
156 | 178 | }, |
157 | | - "pluginVersion": "10.4.1", |
| 179 | + "pluginVersion": "11.5.6", |
158 | 180 | "targets": [ |
159 | 181 | { |
160 | 182 | "datasource": { |
|
188 | 210 | } |
189 | 211 | ], |
190 | 212 | "title": "Matching Queries", |
191 | | - "transformations": [ |
192 | | - { |
193 | | - "id": "merge", |
194 | | - "options": { |
195 | | - "reducers": [] |
196 | | - } |
197 | | - } |
198 | | - ], |
199 | 213 | "type": "table" |
200 | 214 | }, |
201 | 215 | { |
202 | | - "datasource": { |
203 | | - "type": "grafana-postgresql-datasource", |
204 | | - "uid": "pgwatch-metrics" |
| 216 | + "fieldConfig": { |
| 217 | + "defaults": {}, |
| 218 | + "overrides": [] |
205 | 219 | }, |
206 | 220 | "gridPos": { |
207 | 221 | "h": 5, |
|
219 | 233 | "content": "<h2>Brought to you by</h2><div style=\"padding: 25px;\"><a href=\"https://www.cybertec-postgresql.com/en/\"><img src=\"https://www.cybertec-postgresql.com/wp-content/uploads/2025/02/cybertec-logo-white-blue.svg\" alt=\"Cybertec – The PostgreSQL Database Company\"></a></div>", |
220 | 234 | "mode": "html" |
221 | 235 | }, |
222 | | - "pluginVersion": "10.4.1", |
223 | | - "targets": [ |
224 | | - { |
225 | | - "datasource": { |
226 | | - "type": "grafana-postgresql-datasource", |
227 | | - "uid": "pgwatch-metrics" |
228 | | - }, |
229 | | - "refId": "A" |
230 | | - } |
231 | | - ], |
| 236 | + "pluginVersion": "11.5.6", |
| 237 | + "title": "", |
232 | 238 | "transparent": true, |
233 | 239 | "type": "text" |
234 | 240 | } |
235 | 241 | ], |
236 | | - "schemaVersion": 39, |
| 242 | + "preload": false, |
| 243 | + "schemaVersion": 40, |
237 | 244 | "tags": [ |
238 | 245 | "pgwatch" |
239 | 246 | ], |
240 | 247 | "templating": { |
241 | 248 | "list": [ |
242 | 249 | { |
243 | 250 | "current": { |
244 | | - "selected": false, |
245 | 251 | "text": "test", |
246 | 252 | "value": "test" |
247 | 253 | }, |
|
250 | 256 | "uid": "pgwatch-metrics" |
251 | 257 | }, |
252 | 258 | "definition": "SELECT DISTINCT dbname FROM admin.all_distinct_dbname_metrics WHERE metric = 'stat_statements' ORDER BY 1;", |
253 | | - "hide": 0, |
254 | 259 | "includeAll": false, |
255 | | - "multi": false, |
256 | 260 | "name": "dbname", |
257 | 261 | "options": [], |
258 | 262 | "query": "SELECT DISTINCT dbname FROM admin.all_distinct_dbname_metrics WHERE metric = 'stat_statements' ORDER BY 1;", |
259 | 263 | "refresh": 1, |
260 | 264 | "regex": "", |
261 | | - "skipUrlSync": false, |
262 | | - "sort": 0, |
263 | | - "tagValuesQuery": "", |
264 | | - "tagsQuery": "", |
265 | | - "type": "query", |
266 | | - "useTags": false |
| 265 | + "type": "query" |
267 | 266 | }, |
268 | 267 | { |
269 | 268 | "current": { |
270 | 269 | "text": "", |
271 | 270 | "value": "" |
272 | 271 | }, |
273 | | - "hide": 0, |
274 | 272 | "label": "SQL search fragment (case insensitive, 3 char min.)", |
275 | 273 | "name": "sql_fragment", |
276 | 274 | "options": [ |
|
280 | 278 | "value": "" |
281 | 279 | } |
282 | 280 | ], |
283 | | - "query": "", |
284 | | - "skipUrlSync": false, |
| 281 | + "query": "UPDATE pgbench_accounts", |
285 | 282 | "type": "textbox" |
286 | 283 | }, |
287 | 284 | { |
288 | 285 | "auto": false, |
289 | 286 | "auto_count": 30, |
290 | 287 | "auto_min": "10s", |
291 | 288 | "current": { |
292 | | - "selected": false, |
293 | 289 | "text": "12h", |
294 | 290 | "value": "12h" |
295 | 291 | }, |
296 | | - "hide": 0, |
297 | 292 | "label": "Having some executions within last", |
298 | 293 | "name": "calls_interval", |
299 | 294 | "options": [ |
|
340 | 335 | ], |
341 | 336 | "query": "30m,1h,6h,12h,1d,7d,14d,30d", |
342 | 337 | "refresh": 2, |
343 | | - "skipUrlSync": false, |
344 | 338 | "type": "interval" |
345 | 339 | } |
346 | 340 | ] |
|
349 | 343 | "from": "now-12h", |
350 | 344 | "to": "now" |
351 | 345 | }, |
352 | | - "timepicker": { |
353 | | - "hidden": false, |
354 | | - "refresh_intervals": [ |
355 | | - "5s", |
356 | | - "10s", |
357 | | - "30s", |
358 | | - "1m", |
359 | | - "5m", |
360 | | - "15m", |
361 | | - "30m", |
362 | | - "1h", |
363 | | - "2h", |
364 | | - "1d" |
365 | | - ] |
366 | | - }, |
| 346 | + "timepicker": {}, |
367 | 347 | "timezone": "", |
368 | 348 | "title": "Stat Statements SQL Search", |
369 | 349 | "uid": "stat-statements-sql-search", |
|
0 commit comments