|
228 | 228 | "gridPos": { "h": 5, "w": 4, "x": 0, "y": 8 }, |
229 | 229 | "id": 10, |
230 | 230 | "options": { "colorMode": "value", "graphMode": "area", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
231 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_registrations_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Registrations", "refId": "A" }], |
| 231 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(user_registrations_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Registrations", "refId": "A" }], |
232 | 232 | "title": "Registrations", |
233 | 233 | "type": "stat" |
234 | 234 | }, |
|
238 | 238 | "gridPos": { "h": 5, "w": 4, "x": 4, "y": 8 }, |
239 | 239 | "id": 11, |
240 | 240 | "options": { "colorMode": "value", "graphMode": "area", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
241 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_logins_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Logins", "refId": "A" }], |
| 241 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(user_logins_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Logins", "refId": "A" }], |
242 | 242 | "title": "Logins", |
243 | 243 | "type": "stat" |
244 | 244 | }, |
|
248 | 248 | "gridPos": { "h": 5, "w": 4, "x": 8, "y": 8 }, |
249 | 249 | "id": 12, |
250 | 250 | "options": { "colorMode": "value", "graphMode": "area", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
251 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(profile_views_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Profile Views", "refId": "A" }], |
| 251 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(profile_views_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Profile Views", "refId": "A" }], |
252 | 252 | "title": "Profile Views", |
253 | 253 | "type": "stat" |
254 | 254 | }, |
|
258 | 258 | "gridPos": { "h": 5, "w": 4, "x": 12, "y": 8 }, |
259 | 259 | "id": 13, |
260 | 260 | "options": { "colorMode": "value", "graphMode": "area", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
261 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(badge_views_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Badge Views", "refId": "A" }], |
| 261 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(badge_views_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Badge Views", "refId": "A" }], |
262 | 262 | "title": "Badge Views", |
263 | 263 | "type": "stat" |
264 | 264 | }, |
|
268 | 268 | "gridPos": { "h": 5, "w": 4, "x": 16, "y": 8 }, |
269 | 269 | "id": 16, |
270 | 270 | "options": { "colorMode": "value", "graphMode": "area", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
271 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_refreshes_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Refreshes", "refId": "A" }], |
| 271 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(user_refreshes_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Refreshes", "refId": "A" }], |
272 | 272 | "title": "Manual Refreshes", |
273 | 273 | "type": "stat" |
274 | 274 | }, |
|
278 | 278 | "gridPos": { "h": 5, "w": 4, "x": 20, "y": 8 }, |
279 | 279 | "id": 17, |
280 | 280 | "options": { "colorMode": "value", "graphMode": "area", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
281 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_deletions_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Deletions", "refId": "A" }], |
| 281 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(user_deletions_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Deletions", "refId": "A" }], |
282 | 282 | "title": "Account Deletions", |
283 | 283 | "type": "stat" |
284 | 284 | }, |
|
299 | 299 | "tooltip": { "mode": "multi", "sort": "desc" } |
300 | 300 | }, |
301 | 301 | "targets": [ |
302 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_registrations_total{application=\"git-ranker-api\"}[$__interval])", "legendFormat": "Registrations", "refId": "A" }, |
303 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_logins_total{application=\"git-ranker-api\"}[$__interval])", "legendFormat": "Logins", "refId": "B" }, |
304 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_refreshes_total{application=\"git-ranker-api\"}[$__interval])", "legendFormat": "Refreshes", "refId": "C" }, |
305 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_deletions_total{application=\"git-ranker-api\"}[$__interval])", "legendFormat": "Deletions", "refId": "D" } |
| 302 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_registrations_total{application=\"git-ranker-api\"}[$__rate_interval])", "legendFormat": "Registrations", "refId": "A" }, |
| 303 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_logins_total{application=\"git-ranker-api\"}[$__rate_interval])", "legendFormat": "Logins", "refId": "B" }, |
| 304 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_refreshes_total{application=\"git-ranker-api\"}[$__rate_interval])", "legendFormat": "Refreshes", "refId": "C" }, |
| 305 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(user_deletions_total{application=\"git-ranker-api\"}[$__rate_interval])", "legendFormat": "Deletions", "refId": "D" } |
306 | 306 | ], |
307 | 307 | "title": "User Activity Trend", |
308 | 308 | "type": "timeseries" |
|
324 | 324 | "tooltip": { "mode": "multi", "sort": "desc" } |
325 | 325 | }, |
326 | 326 | "targets": [ |
327 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(profile_views_total{application=\"git-ranker-api\"}[$__interval])", "legendFormat": "Profile Views", "refId": "A" }, |
328 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(badge_views_total{application=\"git-ranker-api\"}[$__interval])", "legendFormat": "Badge Views", "refId": "B" } |
| 327 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(profile_views_total{application=\"git-ranker-api\"}[$__rate_interval])", "legendFormat": "Profile Views", "refId": "A" }, |
| 328 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(badge_views_total{application=\"git-ranker-api\"}[$__rate_interval])", "legendFormat": "Badge Views", "refId": "B" } |
329 | 329 | ], |
330 | 330 | "title": "Content Views", |
331 | 331 | "type": "timeseries" |
|
375 | 375 | "id": 31, |
376 | 376 | "options": { "legend": { "calcs": ["sum"], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
377 | 377 | "targets": [ |
378 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(github_api_calls_total{application=\"git-ranker-api\", result=\"success\"}[$__interval])", "legendFormat": "Success", "refId": "A" }, |
379 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(github_api_calls_total{application=\"git-ranker-api\", result=\"failure\"}[$__interval])", "legendFormat": "Failure", "refId": "B" } |
| 378 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(github_api_calls_total{application=\"git-ranker-api\", result=\"success\"}[$__rate_interval])", "legendFormat": "Success", "refId": "A" }, |
| 379 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(github_api_calls_total{application=\"git-ranker-api\", result=\"failure\"}[$__rate_interval])", "legendFormat": "Failure", "refId": "B" } |
380 | 380 | ], |
381 | 381 | "title": "API Call Volume", |
382 | 382 | "type": "timeseries" |
|
444 | 444 | "gridPos": { "h": 5, "w": 3, "x": 12, "y": 31 }, |
445 | 445 | "id": 41, |
446 | 446 | "options": { "colorMode": "value", "graphMode": "area", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
447 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(batch_jobs_completed_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Completed", "refId": "A" }], |
| 447 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(batch_jobs_completed_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Completed", "refId": "A" }], |
448 | 448 | "title": "Jobs Completed", |
449 | 449 | "type": "stat" |
450 | 450 | }, |
|
454 | 454 | "gridPos": { "h": 5, "w": 3, "x": 15, "y": 31 }, |
455 | 455 | "id": 42, |
456 | 456 | "options": { "colorMode": "value", "graphMode": "none", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
457 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(batch_jobs_failed_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Failures", "refId": "A" }], |
| 457 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(batch_jobs_failed_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Failures", "refId": "A" }], |
458 | 458 | "title": "Jobs Failed", |
459 | 459 | "type": "stat" |
460 | 460 | }, |
|
477 | 477 | "id": 45, |
478 | 478 | "options": { "colorMode": "value", "graphMode": "area", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value_and_name" }, |
479 | 479 | "targets": [ |
480 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(batch_items_processed_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Processed", "refId": "A" }, |
481 | | - { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "increase(batch_items_skipped_total{application=\"git-ranker-api\"}[$__range])", "legendFormat": "Skipped", "refId": "B" } |
| 480 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(batch_items_processed_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Processed", "refId": "A" }, |
| 481 | + { "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "round(increase(batch_items_skipped_total{application=\"git-ranker-api\"}[$__range]))", "legendFormat": "Skipped", "refId": "B" } |
482 | 482 | ], |
483 | 483 | "title": "Items", |
484 | 484 | "type": "stat" |
|
516 | 516 | "gridPos": { "h": 8, "w": 8, "x": 0, "y": 42 }, |
517 | 517 | "id": 70, |
518 | 518 | "options": { "legend": { "calcs": ["sum"], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
519 | | - "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "sum by (error_code) (increase(errors_total{application=\"git-ranker-api\"}[$__interval]))", "legendFormat": "{{error_code}}", "refId": "A" }], |
| 519 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${prometheus_ds}" }, "expr": "sum by (error_code) (increase(errors_total{application=\"git-ranker-api\"}[$__rate_interval]))", "legendFormat": "{{error_code}}", "refId": "A" }], |
520 | 520 | "title": "Error by Code", |
521 | 521 | "type": "timeseries" |
522 | 522 | }, |
|
0 commit comments