unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at angular21 343 lines 8.8 kB view raw
1{ 2 "annotations": { 3 "list": [ 4 { 5 "builtIn": 1, 6 "datasource": { 7 "type": "datasource", 8 "uid": "grafana" 9 }, 10 "enable": true, 11 "hide": true, 12 "iconColor": "rgba(0, 211, 255, 1)", 13 "name": "Annotations & Alerts", 14 "type": "dashboard" 15 } 16 ] 17 }, 18 "editable": true, 19 "fiscalYearStartMonth": 0, 20 "graphTooltip": 0, 21 "links": [], 22 "panels": [ 23 { 24 "datasource": { 25 "type": "grafana-postgresql-datasource", 26 "uid": "pgwatch-metrics" 27 }, 28 "description": "As per \"settings\" metric.", 29 "fieldConfig": { 30 "defaults": { 31 "color": { 32 "mode": "thresholds" 33 }, 34 "custom": { 35 "align": "auto", 36 "cellOptions": { 37 "type": "auto" 38 }, 39 "inspect": false 40 }, 41 "mappings": [], 42 "thresholds": { 43 "mode": "absolute", 44 "steps": [ 45 { 46 "color": "green", 47 "value": null 48 }, 49 { 50 "color": "red", 51 "value": 80 52 } 53 ] 54 } 55 }, 56 "overrides": [ 57 { 58 "matcher": { 59 "id": "byName", 60 "options": "server_version_num" 61 }, 62 "properties": [ 63 { 64 "id": "unit", 65 "value": "none" 66 }, 67 { 68 "id": "custom.cellOptions", 69 "value": { 70 "type": "color-background" 71 } 72 }, 73 { 74 "id": "custom.align", 75 "value": "left" 76 }, 77 { 78 "id": "thresholds", 79 "value": { 80 "mode": "absolute", 81 "steps": [ 82 { 83 "color": "rgba(245, 54, 54, 0.9)", 84 "value": null 85 }, 86 { 87 "color": "rgba(237, 129, 40, 0.89)", 88 "value": 90400 89 }, 90 { 91 "color": "rgba(50, 172, 45, 0.97)", 92 "value": 90600 93 } 94 ] 95 } 96 } 97 ] 98 } 99 ] 100 }, 101 "gridPos": { 102 "h": 14, 103 "w": 24, 104 "x": 0, 105 "y": 0 106 }, 107 "id": 2, 108 "options": { 109 "cellHeight": "sm", 110 "footer": { 111 "countRows": false, 112 "fields": "", 113 "reducer": [ 114 "sum" 115 ], 116 "show": false 117 }, 118 "showHeader": true 119 }, 120 "pluginVersion": "10.4.1", 121 "targets": [ 122 { 123 "datasource": { 124 "type": "grafana-postgresql-datasource", 125 "uid": "pgwatch-metrics" 126 }, 127 "format": "table", 128 "group": [], 129 "groupBy": [ 130 { 131 "params": [ 132 "$__interval" 133 ], 134 "type": "time" 135 }, 136 { 137 "params": [ 138 "null" 139 ], 140 "type": "fill" 141 } 142 ], 143 "measurement": "sproc_stats", 144 "metricColumn": "none", 145 "orderByTime": "ASC", 146 "policy": "default", 147 "query": "SELECT top(\"spread\", \"function_full_name\", \"oid\", $top) FROM (SELECT spread(\"total_time\") FROM \"sproc_stats\" WHERE $timeFilter AND \"dbname\" = '$dbname' GROUP BY time(3650d), \"function_full_name\", \"oid\" fill(none) ) WHERE spread > 0", 148 "rawQuery": true, 149 "rawSql": "SELECT\n split_part(data->>'server_version'::text, ' ', 1) as server_version,\n (data->'server_version_num')::int8 as server_version_num,\n string_agg(DISTINCT dbname, ', ') as dbname \nFROM\n settings\nWHERE\n $__timeFilter(time)\n AND dbname IN ($dbname)\n AND (data->>'server_version_num')::int8 <= $lower_than_server_version_num\nGROUP BY 1, 2\nORDER BY 1", 150 "refId": "A", 151 "resultFormat": "table", 152 "select": [ 153 [ 154 { 155 "params": [ 156 "total_time" 157 ], 158 "type": "field" 159 }, 160 { 161 "params": [], 162 "type": "mean" 163 } 164 ] 165 ], 166 "tags": [], 167 "timeColumn": "time", 168 "where": [ 169 { 170 "name": "$__timeFilter", 171 "params": [], 172 "type": "macro" 173 } 174 ] 175 } 176 ], 177 "title": "Monitored DBs by version", 178 "transformations": [ 179 { 180 "id": "merge", 181 "options": { 182 "reducers": [] 183 } 184 } 185 ], 186 "type": "table" 187 }, 188 { 189 "datasource": { 190 "type": "grafana-postgresql-datasource", 191 "uid": "pgwatch-metrics" 192 }, 193 "gridPos": { 194 "h": 8, 195 "w": 12, 196 "x": 0, 197 "y": 14 198 }, 199 "id": 8, 200 "options": { 201 "code": { 202 "language": "plaintext", 203 "showLineNumbers": false, 204 "showMiniMap": false 205 }, 206 "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>", 207 "mode": "html" 208 }, 209 "pluginVersion": "10.4.1", 210 "targets": [ 211 { 212 "datasource": { 213 "type": "grafana-postgresql-datasource", 214 "uid": "pgwatch-metrics" 215 }, 216 "format": "time_series", 217 "group": [], 218 "metricColumn": "none", 219 "rawQuery": false, 220 "refId": "A", 221 "select": [ 222 [ 223 { 224 "params": [ 225 "value" 226 ], 227 "type": "column" 228 } 229 ] 230 ], 231 "timeColumn": "time", 232 "where": [ 233 { 234 "name": "$__timeFilter", 235 "params": [], 236 "type": "macro" 237 } 238 ] 239 } 240 ], 241 "transparent": true, 242 "type": "text" 243 } 244 ], 245 "schemaVersion": 39, 246 "tags": [ 247 "pgwatch" 248 ], 249 "templating": { 250 "list": [ 251 { 252 "current": { 253 "selected": true, 254 "text": [ 255 "All" 256 ], 257 "value": [ 258 "$__all" 259 ] 260 }, 261 "datasource": { 262 "type": "grafana-postgresql-datasource", 263 "uid": "pgwatch-metrics" 264 }, 265 "definition": "SELECT DISTINCT dbname FROM admin.all_distinct_dbname_metrics WHERE metric = 'settings' ORDER BY 1;", 266 "hide": 0, 267 "includeAll": true, 268 "multi": true, 269 "name": "dbname", 270 "options": [], 271 "query": "SELECT DISTINCT dbname FROM admin.all_distinct_dbname_metrics WHERE metric = 'settings' ORDER BY 1;", 272 "refresh": 1, 273 "regex": "", 274 "skipUrlSync": false, 275 "sort": 0, 276 "tagValuesQuery": "", 277 "tagsQuery": "", 278 "type": "query", 279 "useTags": false 280 }, 281 { 282 "current": { 283 "selected": false, 284 "text": "160002", 285 "value": "160002" 286 }, 287 "datasource": { 288 "type": "grafana-postgresql-datasource", 289 "uid": "pgwatch-metrics" 290 }, 291 "definition": "SELECT DISTINCT (data->'server_version_num')::int FROM settings WHERE time > now() - '24h'::interval ORDER BY 1 DESC", 292 "hide": 0, 293 "includeAll": false, 294 "multi": false, 295 "name": "lower_than_server_version_num", 296 "options": [], 297 "query": "SELECT DISTINCT (data->'server_version_num')::int FROM settings WHERE time > now() - '24h'::interval ORDER BY 1 DESC", 298 "refresh": 1, 299 "regex": "", 300 "skipUrlSync": false, 301 "sort": 0, 302 "tagValuesQuery": "", 303 "tagsQuery": "", 304 "type": "query", 305 "useTags": false 306 } 307 ] 308 }, 309 "time": { 310 "from": "now-6h", 311 "to": "now" 312 }, 313 "timepicker": { 314 "refresh_intervals": [ 315 "5s", 316 "10s", 317 "30s", 318 "1m", 319 "5m", 320 "15m", 321 "30m", 322 "1h", 323 "2h", 324 "1d" 325 ], 326 "time_options": [ 327 "5m", 328 "15m", 329 "1h", 330 "6h", 331 "12h", 332 "24h", 333 "2d", 334 "7d", 335 "30d" 336 ] 337 }, 338 "timezone": "", 339 "title": "Postgres Version Overview", 340 "uid": "postgres-version-overview", 341 "version": 1, 342 "weekStart": "" 343}