| 1 | { |
| 2 | "uid": "ghost-overview", |
| 3 | "title": "Ghost", |
| 4 | "tags": [ |
| 5 | "ghost" |
| 6 | ], |
| 7 | "timezone": "browser", |
| 8 | "schemaVersion": 39, |
| 9 | "refresh": "30s", |
| 10 | "time": { |
| 11 | "from": "now-6h", |
| 12 | "to": "now" |
| 13 | }, |
| 14 | "templating": { |
| 15 | "list": [ |
| 16 | { |
| 17 | "name": "service", |
| 18 | "label": "Service", |
| 19 | "type": "query", |
| 20 | "datasource": { |
| 21 | "type": "prometheus", |
| 22 | "uid": "prometheus" |
| 23 | }, |
| 24 | "query": { |
| 25 | "query": "label_values(traces_spanmetrics_calls_total, service)", |
| 26 | "refId": "service" |
| 27 | }, |
| 28 | "includeAll": true, |
| 29 | "multi": true, |
| 30 | "current": { |
| 31 | "text": "All", |
| 32 | "value": "$__all" |
| 33 | }, |
| 34 | "refresh": 2 |
| 35 | } |
| 36 | ] |
| 37 | }, |
| 38 | "panels": [ |
| 39 | { |
| 40 | "type": "timeseries", |
| 41 | "title": "Requests per second", |
| 42 | "datasource": { |
| 43 | "type": "prometheus", |
| 44 | "uid": "prometheus" |
| 45 | }, |
| 46 | "gridPos": { |
| 47 | "h": 8, |
| 48 | "w": 12, |
| 49 | "x": 0, |
| 50 | "y": 0 |
| 51 | }, |
| 52 | "fieldConfig": { |
| 53 | "defaults": { |
| 54 | "unit": "reqps", |
| 55 | "custom": { |
| 56 | "fillOpacity": 10 |
| 57 | } |
| 58 | }, |
| 59 | "overrides": [] |
| 60 | }, |
| 61 | "targets": [ |
| 62 | { |
| 63 | "refId": "A", |
| 64 | "datasource": { |
| 65 | "type": "prometheus", |
| 66 | "uid": "prometheus" |
| 67 | }, |
| 68 | "expr": "sum by (service) (rate(traces_spanmetrics_calls_total{service=~\"$service\", span_kind=\"SPAN_KIND_SERVER\"}[$__rate_interval]))", |
| 69 | "legendFormat": "{{service}}" |
| 70 | } |
| 71 | ] |
| 72 | }, |
| 73 | { |
| 74 | "type": "timeseries", |
| 75 | "title": "Error rate", |
| 76 | "datasource": { |
| 77 | "type": "prometheus", |
| 78 | "uid": "prometheus" |
| 79 | }, |
| 80 | "gridPos": { |
| 81 | "h": 8, |
| 82 | "w": 12, |
| 83 | "x": 12, |
| 84 | "y": 0 |
| 85 | }, |
| 86 | "fieldConfig": { |
| 87 | "defaults": { |
| 88 | "unit": "percentunit", |
| 89 | "min": 0, |
| 90 | "custom": { |
| 91 | "fillOpacity": 10 |
| 92 | } |
| 93 | }, |
| 94 | "overrides": [] |
| 95 | }, |
| 96 | "targets": [ |
| 97 | { |
| 98 | "refId": "A", |
| 99 | "datasource": { |
| 100 | "type": "prometheus", |
| 101 | "uid": "prometheus" |
| 102 | }, |
| 103 | "expr": "sum by (service) (rate(traces_spanmetrics_calls_total{service=~\"$service\", span_kind=\"SPAN_KIND_SERVER\", status_code=\"STATUS_CODE_ERROR\"}[$__rate_interval])) / sum by (service) (rate(traces_spanmetrics_calls_total{service=~\"$service\", span_kind=\"SPAN_KIND_SERVER\"}[$__rate_interval]))", |
| 104 | "legendFormat": "{{service}}" |
| 105 | } |
| 106 | ] |
| 107 | }, |
| 108 | { |
| 109 | "type": "timeseries", |
| 110 | "title": "Request latency", |
| 111 | "description": "Server spans across every instrumented service.", |
| 112 | "datasource": { |
| 113 | "type": "prometheus", |
| 114 | "uid": "prometheus" |
| 115 | }, |
| 116 | "gridPos": { |
| 117 | "h": 9, |
| 118 | "w": 24, |
| 119 | "x": 0, |
| 120 | "y": 8 |
| 121 | }, |
| 122 | "fieldConfig": { |
| 123 | "defaults": { |
| 124 | "unit": "s", |
| 125 | "custom": { |
| 126 | "fillOpacity": 0 |
| 127 | } |
| 128 | }, |
| 129 | "overrides": [] |
| 130 | }, |
| 131 | "options": { |
| 132 | "legend": { |
| 133 | "displayMode": "table", |
| 134 | "calcs": [ |
| 135 | "lastNotNull", |
| 136 | "max" |
| 137 | ], |
| 138 | "placement": "right" |
| 139 | } |
| 140 | }, |
| 141 | "targets": [ |
| 142 | { |
| 143 | "refId": "p50", |
| 144 | "datasource": { |
| 145 | "type": "prometheus", |
| 146 | "uid": "prometheus" |
| 147 | }, |
| 148 | "expr": "histogram_quantile(0.50, sum by (service, le) (rate(traces_spanmetrics_latency_bucket{service=~\"$service\", span_kind=\"SPAN_KIND_SERVER\"}[$__rate_interval])))", |
| 149 | "legendFormat": "{{service}} p50" |
| 150 | }, |
| 151 | { |
| 152 | "refId": "p90", |
| 153 | "datasource": { |
| 154 | "type": "prometheus", |
| 155 | "uid": "prometheus" |
| 156 | }, |
| 157 | "expr": "histogram_quantile(0.90, sum by (service, le) (rate(traces_spanmetrics_latency_bucket{service=~\"$service\", span_kind=\"SPAN_KIND_SERVER\"}[$__rate_interval])))", |
| 158 | "legendFormat": "{{service}} p90" |
| 159 | }, |
| 160 | { |
| 161 | "refId": "p99", |
| 162 | "datasource": { |
| 163 | "type": "prometheus", |
| 164 | "uid": "prometheus" |
| 165 | }, |
| 166 | "expr": "histogram_quantile(0.99, sum by (service, le) (rate(traces_spanmetrics_latency_bucket{service=~\"$service\", span_kind=\"SPAN_KIND_SERVER\"}[$__rate_interval])))", |
| 167 | "legendFormat": "{{service}} p99" |
| 168 | } |
| 169 | ] |
| 170 | }, |
| 171 | { |
| 172 | "type": "table", |
| 173 | "title": "Slowest endpoints (p99)", |
| 174 | "datasource": { |
| 175 | "type": "prometheus", |
| 176 | "uid": "prometheus" |
| 177 | }, |
| 178 | "gridPos": { |
| 179 | "h": 9, |
| 180 | "w": 12, |
| 181 | "x": 0, |
| 182 | "y": 17 |
| 183 | }, |
| 184 | "fieldConfig": { |
| 185 | "defaults": { |
| 186 | "unit": "s" |
| 187 | }, |
| 188 | "overrides": [] |
| 189 | }, |
| 190 | "options": { |
| 191 | "sortBy": [ |
| 192 | { |
| 193 | "displayName": "Value", |
| 194 | "desc": true |
| 195 | } |
| 196 | ] |
| 197 | }, |
| 198 | "targets": [ |
| 199 | { |
| 200 | "refId": "A", |
| 201 | "datasource": { |
| 202 | "type": "prometheus", |
| 203 | "uid": "prometheus" |
| 204 | }, |
| 205 | "expr": "topk(20, histogram_quantile(0.99, sum by (service, span_name, le) (rate(traces_spanmetrics_latency_bucket{service=~\"$service\", span_kind=\"SPAN_KIND_SERVER\"}[$__rate_interval]))))", |
| 206 | "instant": true, |
| 207 | "format": "table" |
| 208 | } |
| 209 | ], |
| 210 | "transformations": [ |
| 211 | { |
| 212 | "id": "organize", |
| 213 | "options": { |
| 214 | "excludeByName": { |
| 215 | "Time": true |
| 216 | } |
| 217 | } |
| 218 | } |
| 219 | ] |
| 220 | }, |
| 221 | { |
| 222 | "type": "timeseries", |
| 223 | "title": "Outbound calls, p99 (database, S3, HTTP)", |
| 224 | "datasource": { |
| 225 | "type": "prometheus", |
| 226 | "uid": "prometheus" |
| 227 | }, |
| 228 | "gridPos": { |
| 229 | "h": 9, |
| 230 | "w": 12, |
| 231 | "x": 12, |
| 232 | "y": 17 |
| 233 | }, |
| 234 | "fieldConfig": { |
| 235 | "defaults": { |
| 236 | "unit": "s", |
| 237 | "custom": { |
| 238 | "fillOpacity": 0 |
| 239 | } |
| 240 | }, |
| 241 | "overrides": [] |
| 242 | }, |
| 243 | "targets": [ |
| 244 | { |
| 245 | "refId": "A", |
| 246 | "datasource": { |
| 247 | "type": "prometheus", |
| 248 | "uid": "prometheus" |
| 249 | }, |
| 250 | "expr": "topk(10, histogram_quantile(0.99, sum by (service, span_name, le) (rate(traces_spanmetrics_latency_bucket{service=~\"$service\", span_kind=\"SPAN_KIND_CLIENT\"}[$__rate_interval]))))", |
| 251 | "legendFormat": "{{service}} {{span_name}}" |
| 252 | } |
| 253 | ] |
| 254 | }, |
| 255 | { |
| 256 | "type": "timeseries", |
| 257 | "title": "API route latency (OTel HTTP metrics)", |
| 258 | "description": "Emitted by the API's own SDK, so it carries the matched route rather than the span name.", |
| 259 | "datasource": { |
| 260 | "type": "prometheus", |
| 261 | "uid": "prometheus" |
| 262 | }, |
| 263 | "gridPos": { |
| 264 | "h": 9, |
| 265 | "w": 24, |
| 266 | "x": 0, |
| 267 | "y": 26 |
| 268 | }, |
| 269 | "fieldConfig": { |
| 270 | "defaults": { |
| 271 | "unit": "s", |
| 272 | "custom": { |
| 273 | "fillOpacity": 0 |
| 274 | } |
| 275 | }, |
| 276 | "overrides": [] |
| 277 | }, |
| 278 | "targets": [ |
| 279 | { |
| 280 | "refId": "p50", |
| 281 | "datasource": { |
| 282 | "type": "prometheus", |
| 283 | "uid": "prometheus" |
| 284 | }, |
| 285 | "expr": "histogram_quantile(0.50, sum by (le) (rate(http_server_request_duration_seconds_bucket{job=~\"$service\"}[$__rate_interval])))", |
| 286 | "legendFormat": "p50" |
| 287 | }, |
| 288 | { |
| 289 | "refId": "p99", |
| 290 | "datasource": { |
| 291 | "type": "prometheus", |
| 292 | "uid": "prometheus" |
| 293 | }, |
| 294 | "expr": "histogram_quantile(0.99, sum by (le) (rate(http_server_request_duration_seconds_bucket{job=~\"$service\"}[$__rate_interval])))", |
| 295 | "legendFormat": "p99" |
| 296 | }, |
| 297 | { |
| 298 | "refId": "route", |
| 299 | "datasource": { |
| 300 | "type": "prometheus", |
| 301 | "uid": "prometheus" |
| 302 | }, |
| 303 | "expr": "topk(10, histogram_quantile(0.99, sum by (http_route, le) (rate(http_server_request_duration_seconds_bucket{job=~\"$service\"}[$__rate_interval]))))", |
| 304 | "legendFormat": "p99 {{http_route}}" |
| 305 | } |
| 306 | ] |
| 307 | }, |
| 308 | { |
| 309 | "type": "traces", |
| 310 | "title": "Slow traces (over 500ms)", |
| 311 | "datasource": { |
| 312 | "type": "tempo", |
| 313 | "uid": "tempo" |
| 314 | }, |
| 315 | "gridPos": { |
| 316 | "h": 10, |
| 317 | "w": 24, |
| 318 | "x": 0, |
| 319 | "y": 35 |
| 320 | }, |
| 321 | "targets": [ |
| 322 | { |
| 323 | "refId": "A", |
| 324 | "datasource": { |
| 325 | "type": "tempo", |
| 326 | "uid": "tempo" |
| 327 | }, |
| 328 | "queryType": "traceql", |
| 329 | "query": "{ duration > 500ms }", |
| 330 | "limit": 20, |
| 331 | "tableType": "traces" |
| 332 | } |
| 333 | ] |
| 334 | }, |
| 335 | { |
| 336 | "type": "flamegraph", |
| 337 | "title": "CPU profile (API)", |
| 338 | "description": "CPU time only. A frame that is wide here is burning the processor.", |
| 339 | "datasource": { |
| 340 | "type": "grafana-pyroscope-datasource", |
| 341 | "uid": "pyroscope" |
| 342 | }, |
| 343 | "gridPos": { |
| 344 | "h": 12, |
| 345 | "w": 12, |
| 346 | "x": 0, |
| 347 | "y": 45 |
| 348 | }, |
| 349 | "targets": [ |
| 350 | { |
| 351 | "refId": "A", |
| 352 | "datasource": { |
| 353 | "type": "grafana-pyroscope-datasource", |
| 354 | "uid": "pyroscope" |
| 355 | }, |
| 356 | "queryType": "profile", |
| 357 | "profileTypeId": "wall:cpu:nanoseconds:wall:nanoseconds", |
| 358 | "labelSelector": "{service_name=\"ghost-api\"}", |
| 359 | "groupBy": [] |
| 360 | } |
| 361 | ] |
| 362 | }, |
| 363 | { |
| 364 | "type": "flamegraph", |
| 365 | "title": "Wall profile (API)", |
| 366 | "description": "Wall clock, so a frame wide here but narrow in the CPU profile is waiting on postgres, S3 or git.", |
| 367 | "datasource": { |
| 368 | "type": "grafana-pyroscope-datasource", |
| 369 | "uid": "pyroscope" |
| 370 | }, |
| 371 | "gridPos": { |
| 372 | "h": 12, |
| 373 | "w": 12, |
| 374 | "x": 12, |
| 375 | "y": 45 |
| 376 | }, |
| 377 | "targets": [ |
| 378 | { |
| 379 | "refId": "A", |
| 380 | "datasource": { |
| 381 | "type": "grafana-pyroscope-datasource", |
| 382 | "uid": "pyroscope" |
| 383 | }, |
| 384 | "queryType": "profile", |
| 385 | "profileTypeId": "wall:wall:nanoseconds:wall:nanoseconds", |
| 386 | "labelSelector": "{service_name=\"ghost-api\"}", |
| 387 | "groupBy": [] |
| 388 | } |
| 389 | ] |
| 390 | }, |
| 391 | { |
| 392 | "type": "row", |
| 393 | "title": "Application", |
| 394 | "gridPos": { |
| 395 | "h": 1, |
| 396 | "w": 24, |
| 397 | "x": 0, |
| 398 | "y": 57 |
| 399 | }, |
| 400 | "collapsed": false, |
| 401 | "panels": [] |
| 402 | }, |
| 403 | { |
| 404 | "type": "stat", |
| 405 | "title": "Commits", |
| 406 | "datasource": { |
| 407 | "type": "prometheus", |
| 408 | "uid": "prometheus" |
| 409 | }, |
| 410 | "gridPos": { |
| 411 | "h": 5, |
| 412 | "w": 4, |
| 413 | "x": 0, |
| 414 | "y": 58 |
| 415 | }, |
| 416 | "fieldConfig": { |
| 417 | "defaults": {}, |
| 418 | "overrides": [] |
| 419 | }, |
| 420 | "options": { |
| 421 | "graphMode": "area", |
| 422 | "colorMode": "value", |
| 423 | "reduceOptions": { |
| 424 | "calcs": [ |
| 425 | "lastNotNull" |
| 426 | ], |
| 427 | "fields": "", |
| 428 | "values": false |
| 429 | } |
| 430 | }, |
| 431 | "targets": [ |
| 432 | { |
| 433 | "refId": "A", |
| 434 | "datasource": { |
| 435 | "type": "prometheus", |
| 436 | "uid": "prometheus" |
| 437 | }, |
| 438 | "expr": "sum(ghost_commits)" |
| 439 | } |
| 440 | ], |
| 441 | "description": "Commits indexed on default branches. A force push that drops commits lowers it." |
| 442 | }, |
| 443 | { |
| 444 | "type": "stat", |
| 445 | "title": "Repositories", |
| 446 | "datasource": { |
| 447 | "type": "prometheus", |
| 448 | "uid": "prometheus" |
| 449 | }, |
| 450 | "gridPos": { |
| 451 | "h": 5, |
| 452 | "w": 4, |
| 453 | "x": 4, |
| 454 | "y": 58 |
| 455 | }, |
| 456 | "fieldConfig": { |
| 457 | "defaults": {}, |
| 458 | "overrides": [] |
| 459 | }, |
| 460 | "options": { |
| 461 | "graphMode": "area", |
| 462 | "colorMode": "value", |
| 463 | "reduceOptions": { |
| 464 | "calcs": [ |
| 465 | "lastNotNull" |
| 466 | ], |
| 467 | "fields": "", |
| 468 | "values": false |
| 469 | } |
| 470 | }, |
| 471 | "targets": [ |
| 472 | { |
| 473 | "refId": "A", |
| 474 | "datasource": { |
| 475 | "type": "prometheus", |
| 476 | "uid": "prometheus" |
| 477 | }, |
| 478 | "expr": "sum(ghost_repositories)" |
| 479 | } |
| 480 | ] |
| 481 | }, |
| 482 | { |
| 483 | "type": "stat", |
| 484 | "title": "Users", |
| 485 | "datasource": { |
| 486 | "type": "prometheus", |
| 487 | "uid": "prometheus" |
| 488 | }, |
| 489 | "gridPos": { |
| 490 | "h": 5, |
| 491 | "w": 4, |
| 492 | "x": 8, |
| 493 | "y": 58 |
| 494 | }, |
| 495 | "fieldConfig": { |
| 496 | "defaults": {}, |
| 497 | "overrides": [] |
| 498 | }, |
| 499 | "options": { |
| 500 | "graphMode": "area", |
| 501 | "colorMode": "value", |
| 502 | "reduceOptions": { |
| 503 | "calcs": [ |
| 504 | "lastNotNull" |
| 505 | ], |
| 506 | "fields": "", |
| 507 | "values": false |
| 508 | } |
| 509 | }, |
| 510 | "targets": [ |
| 511 | { |
| 512 | "refId": "A", |
| 513 | "datasource": { |
| 514 | "type": "prometheus", |
| 515 | "uid": "prometheus" |
| 516 | }, |
| 517 | "expr": "sum(ghost_users)" |
| 518 | } |
| 519 | ] |
| 520 | }, |
| 521 | { |
| 522 | "type": "stat", |
| 523 | "title": "Stars", |
| 524 | "datasource": { |
| 525 | "type": "prometheus", |
| 526 | "uid": "prometheus" |
| 527 | }, |
| 528 | "gridPos": { |
| 529 | "h": 5, |
| 530 | "w": 4, |
| 531 | "x": 12, |
| 532 | "y": 58 |
| 533 | }, |
| 534 | "fieldConfig": { |
| 535 | "defaults": {}, |
| 536 | "overrides": [] |
| 537 | }, |
| 538 | "options": { |
| 539 | "graphMode": "area", |
| 540 | "colorMode": "value", |
| 541 | "reduceOptions": { |
| 542 | "calcs": [ |
| 543 | "lastNotNull" |
| 544 | ], |
| 545 | "fields": "", |
| 546 | "values": false |
| 547 | } |
| 548 | }, |
| 549 | "targets": [ |
| 550 | { |
| 551 | "refId": "A", |
| 552 | "datasource": { |
| 553 | "type": "prometheus", |
| 554 | "uid": "prometheus" |
| 555 | }, |
| 556 | "expr": "sum(ghost_stars)" |
| 557 | } |
| 558 | ] |
| 559 | }, |
| 560 | { |
| 561 | "type": "stat", |
| 562 | "title": "Open issues", |
| 563 | "datasource": { |
| 564 | "type": "prometheus", |
| 565 | "uid": "prometheus" |
| 566 | }, |
| 567 | "gridPos": { |
| 568 | "h": 5, |
| 569 | "w": 4, |
| 570 | "x": 16, |
| 571 | "y": 58 |
| 572 | }, |
| 573 | "fieldConfig": { |
| 574 | "defaults": {}, |
| 575 | "overrides": [] |
| 576 | }, |
| 577 | "options": { |
| 578 | "graphMode": "area", |
| 579 | "colorMode": "value", |
| 580 | "reduceOptions": { |
| 581 | "calcs": [ |
| 582 | "lastNotNull" |
| 583 | ], |
| 584 | "fields": "", |
| 585 | "values": false |
| 586 | } |
| 587 | }, |
| 588 | "targets": [ |
| 589 | { |
| 590 | "refId": "A", |
| 591 | "datasource": { |
| 592 | "type": "prometheus", |
| 593 | "uid": "prometheus" |
| 594 | }, |
| 595 | "expr": "sum(ghost_issues{state=\"open\"})" |
| 596 | } |
| 597 | ] |
| 598 | }, |
| 599 | { |
| 600 | "type": "stat", |
| 601 | "title": "Open pull requests", |
| 602 | "datasource": { |
| 603 | "type": "prometheus", |
| 604 | "uid": "prometheus" |
| 605 | }, |
| 606 | "gridPos": { |
| 607 | "h": 5, |
| 608 | "w": 4, |
| 609 | "x": 20, |
| 610 | "y": 58 |
| 611 | }, |
| 612 | "fieldConfig": { |
| 613 | "defaults": {}, |
| 614 | "overrides": [] |
| 615 | }, |
| 616 | "options": { |
| 617 | "graphMode": "area", |
| 618 | "colorMode": "value", |
| 619 | "reduceOptions": { |
| 620 | "calcs": [ |
| 621 | "lastNotNull" |
| 622 | ], |
| 623 | "fields": "", |
| 624 | "values": false |
| 625 | } |
| 626 | }, |
| 627 | "targets": [ |
| 628 | { |
| 629 | "refId": "A", |
| 630 | "datasource": { |
| 631 | "type": "prometheus", |
| 632 | "uid": "prometheus" |
| 633 | }, |
| 634 | "expr": "sum(ghost_pull_requests{state=\"open\"})" |
| 635 | } |
| 636 | ] |
| 637 | }, |
| 638 | { |
| 639 | "type": "timeseries", |
| 640 | "title": "Commits over time", |
| 641 | "datasource": { |
| 642 | "type": "prometheus", |
| 643 | "uid": "prometheus" |
| 644 | }, |
| 645 | "gridPos": { |
| 646 | "h": 8, |
| 647 | "w": 12, |
| 648 | "x": 0, |
| 649 | "y": 63 |
| 650 | }, |
| 651 | "fieldConfig": { |
| 652 | "defaults": { |
| 653 | "custom": { |
| 654 | "fillOpacity": 10 |
| 655 | } |
| 656 | }, |
| 657 | "overrides": [] |
| 658 | }, |
| 659 | "targets": [ |
| 660 | { |
| 661 | "refId": "A", |
| 662 | "datasource": { |
| 663 | "type": "prometheus", |
| 664 | "uid": "prometheus" |
| 665 | }, |
| 666 | "expr": "sum(ghost_commits)", |
| 667 | "legendFormat": "commits" |
| 668 | } |
| 669 | ], |
| 670 | "description": "The instance total, sampled every collection." |
| 671 | }, |
| 672 | { |
| 673 | "type": "timeseries", |
| 674 | "title": "Repositories by visibility", |
| 675 | "datasource": { |
| 676 | "type": "prometheus", |
| 677 | "uid": "prometheus" |
| 678 | }, |
| 679 | "gridPos": { |
| 680 | "h": 8, |
| 681 | "w": 12, |
| 682 | "x": 12, |
| 683 | "y": 63 |
| 684 | }, |
| 685 | "fieldConfig": { |
| 686 | "defaults": { |
| 687 | "custom": { |
| 688 | "fillOpacity": 10 |
| 689 | } |
| 690 | }, |
| 691 | "overrides": [] |
| 692 | }, |
| 693 | "targets": [ |
| 694 | { |
| 695 | "refId": "A", |
| 696 | "datasource": { |
| 697 | "type": "prometheus", |
| 698 | "uid": "prometheus" |
| 699 | }, |
| 700 | "expr": "sum by (visibility) (ghost_repositories)", |
| 701 | "legendFormat": "{{visibility}}" |
| 702 | } |
| 703 | ] |
| 704 | }, |
| 705 | { |
| 706 | "type": "timeseries", |
| 707 | "title": "Pushed bytes", |
| 708 | "datasource": { |
| 709 | "type": "prometheus", |
| 710 | "uid": "prometheus" |
| 711 | }, |
| 712 | "gridPos": { |
| 713 | "h": 8, |
| 714 | "w": 12, |
| 715 | "x": 0, |
| 716 | "y": 71 |
| 717 | }, |
| 718 | "fieldConfig": { |
| 719 | "defaults": { |
| 720 | "custom": { |
| 721 | "fillOpacity": 10 |
| 722 | }, |
| 723 | "unit": "bytes" |
| 724 | }, |
| 725 | "overrides": [] |
| 726 | }, |
| 727 | "targets": [ |
| 728 | { |
| 729 | "refId": "A", |
| 730 | "datasource": { |
| 731 | "type": "prometheus", |
| 732 | "uid": "prometheus" |
| 733 | }, |
| 734 | "expr": "sum(increase(ghost_push_bytes_total[$__rate_interval]))", |
| 735 | "legendFormat": "pushed" |
| 736 | } |
| 737 | ], |
| 738 | "description": "Packfile bytes accepted into the write-ahead log. Counters restart with the process, which `increase` accounts for." |
| 739 | }, |
| 740 | { |
| 741 | "type": "timeseries", |
| 742 | "title": "Pushes and ref updates", |
| 743 | "datasource": { |
| 744 | "type": "prometheus", |
| 745 | "uid": "prometheus" |
| 746 | }, |
| 747 | "gridPos": { |
| 748 | "h": 8, |
| 749 | "w": 12, |
| 750 | "x": 12, |
| 751 | "y": 71 |
| 752 | }, |
| 753 | "fieldConfig": { |
| 754 | "defaults": { |
| 755 | "custom": { |
| 756 | "fillOpacity": 10 |
| 757 | } |
| 758 | }, |
| 759 | "overrides": [] |
| 760 | }, |
| 761 | "targets": [ |
| 762 | { |
| 763 | "refId": "A", |
| 764 | "datasource": { |
| 765 | "type": "prometheus", |
| 766 | "uid": "prometheus" |
| 767 | }, |
| 768 | "expr": "sum(increase(ghost_pushes_total[$__rate_interval]))", |
| 769 | "legendFormat": "pushes" |
| 770 | }, |
| 771 | { |
| 772 | "refId": "B", |
| 773 | "datasource": { |
| 774 | "type": "prometheus", |
| 775 | "uid": "prometheus" |
| 776 | }, |
| 777 | "expr": "sum(increase(ghost_ref_updates_total[$__rate_interval]))", |
| 778 | "legendFormat": "ref updates" |
| 779 | } |
| 780 | ] |
| 781 | } |
| 782 | ] |
| 783 | } |