|
128 | 128 | ]
|
129 | 129 | }
|
130 | 130 | },
|
131 |
| - "overrides": [] |
| 131 | + "overrides": [ |
| 132 | + { |
| 133 | + "matcher": { |
| 134 | + "id": "byRegexp", |
| 135 | + "options": "/.*/" |
| 136 | + }, |
| 137 | + "properties": [ |
| 138 | + { |
| 139 | + "id": "displayName", |
| 140 | + "value": "CPU seconds" |
| 141 | + }, |
| 142 | + { |
| 143 | + "id": "unit", |
| 144 | + "value": "s" |
| 145 | + } |
| 146 | + ] |
| 147 | + } |
| 148 | + ] |
132 | 149 | },
|
133 | 150 | "gridPos": {
|
134 | 151 | "h": 8,
|
|
413 | 430 | "overrides": [
|
414 | 431 | {
|
415 | 432 | "matcher": {
|
416 |
| - "id": "byName", |
417 |
| - "options": "{__name__=\"coderd_provisionerd_num_daemons\", app=\"coderd\", instance=\"coder:2112\", job=\"coderd\"}" |
| 433 | + "id": "byRegexp", |
| 434 | + "options": "/coderd_provisionerd_num_daemons/" |
418 | 435 | },
|
419 | 436 | "properties": [
|
420 | 437 | {
|
421 | 438 | "id": "displayName",
|
422 | 439 | "value": "Running provisioners"
|
423 | 440 | }
|
424 | 441 | ]
|
| 442 | + }, |
| 443 | + { |
| 444 | + "matcher": { |
| 445 | + "id": "byRegexp", |
| 446 | + "options": "/coderd_provisionerd_jobs_current/" |
| 447 | + }, |
| 448 | + "properties": [ |
| 449 | + { |
| 450 | + "id": "displayName", |
| 451 | + "value": "Running jobs" |
| 452 | + } |
| 453 | + ] |
425 | 454 | }
|
426 | 455 | ]
|
427 | 456 | },
|
|
531 | 560 | "overrides": [
|
532 | 561 | {
|
533 | 562 | "matcher": {
|
534 |
| - "id": "byName", |
535 |
| - "options": "sum(rate(coderd_db_query_latencies_seconds_count[1m0s]))" |
| 563 | + "id": "byRegexp", |
| 564 | + "options": "/.*coderd_db_query_latencies_seconds_count.*/" |
536 | 565 | },
|
537 | 566 | "properties": [
|
538 | 567 | {
|
|
547 | 576 | },
|
548 | 577 | {
|
549 | 578 | "matcher": {
|
550 |
| - "id": "byName", |
551 |
| - "options": "histogram_quantile(0.95, sum by(le) (rate(coderd_db_query_latencies_seconds_bucket[1m0s])))" |
| 579 | + "id": "byRegexp", |
| 580 | + "options": "/.*coderd_db_query_latencies_seconds_bucket.*/" |
552 | 581 | },
|
553 | 582 | "properties": [
|
554 | 583 | {
|
555 | 584 | "id": "displayName",
|
556 |
| - "value": "P95 latency" |
| 585 | + "value": "P95 query latency" |
557 | 586 | }
|
558 | 587 | ]
|
559 | 588 | }
|
|
666 | 695 | "overrides": [
|
667 | 696 | {
|
668 | 697 | "matcher": {
|
669 |
| - "id": "byName", |
670 |
| - "options": "{__name__=\"go_memstats_alloc_bytes\", app=\"coderd\", instance=\"coder:2112\", job=\"coderd\"}" |
| 698 | + "id": "byRegexp", |
| 699 | + "options": "/go_memstats_alloc_bytes/" |
671 | 700 | },
|
672 | 701 | "properties": [
|
673 | 702 | {
|
|
686 | 715 | },
|
687 | 716 | {
|
688 | 717 | "matcher": {
|
689 |
| - "id": "byName", |
690 |
| - "options": "{__name__=\"go_goroutines\", app=\"coderd\", instance=\"coder:2112\", job=\"coderd\"}" |
| 718 | + "id": "byRegexp", |
| 719 | + "options": "/go_goroutines/" |
691 | 720 | },
|
692 | 721 | "properties": [
|
693 | 722 | {
|
|
804 | 833 | "overrides": [
|
805 | 834 | {
|
806 | 835 | "matcher": {
|
807 |
| - "id": "byName", |
808 |
| - "options": "sum(rate(coderd_api_requests_processed_total{code=\"500\"}[1m0s]))" |
| 836 | + "id": "byRegexp", |
| 837 | + "options": "/coderd_api_requests_processed_total{code=\"500\"}/" |
809 | 838 | },
|
810 | 839 | "properties": [
|
811 | 840 | {
|
812 | 841 | "id": "displayName",
|
813 | 842 | "value": "Error rate"
|
| 843 | + }, |
| 844 | + { |
| 845 | + "id": "unit", |
| 846 | + "value": "reqps" |
814 | 847 | }
|
815 | 848 | ]
|
816 | 849 | },
|
817 | 850 | {
|
818 | 851 | "matcher": {
|
819 |
| - "id": "byName", |
820 |
| - "options": "coderd" |
| 852 | + "id": "byRegexp", |
| 853 | + "options": "/coderd_api_requests_processed_total/" |
821 | 854 | },
|
822 | 855 | "properties": [
|
823 | 856 | {
|
824 | 857 | "id": "displayName",
|
825 | 858 | "value": "Request rate"
|
| 859 | + }, |
| 860 | + { |
| 861 | + "id": "unit", |
| 862 | + "value": "reqps" |
826 | 863 | }
|
827 | 864 | ]
|
828 | 865 | },
|
829 | 866 | {
|
830 | 867 | "matcher": {
|
831 |
| - "id": "byName", |
832 |
| - "options": "histogram_quantile(0.95, sum by(le) (rate(coderd_api_request_latencies_seconds_bucket[1m0s])))" |
| 868 | + "id": "byRegexp", |
| 869 | + "options": "/coderd_api_request_latencies_seconds_bucket/" |
833 | 870 | },
|
834 | 871 | "properties": [
|
835 | 872 | {
|
|
870 | 907 | "uid": "${DS_PROMETHEUS}"
|
871 | 908 | },
|
872 | 909 | "editorMode": "builder",
|
873 |
| - "expr": "sum by(job) (rate(coderd_api_requests_processed_total{$filter_key=\"$filter_value\"}[$__rate_interval]))", |
| 910 | + "expr": "sum(rate(coderd_api_requests_processed_total{$filter_key=\"$filter_value\"}[$__rate_interval]))", |
| 911 | + "interval": "", |
874 | 912 | "legendFormat": "__auto",
|
875 | 913 | "range": true,
|
876 | 914 | "refId": "A"
|
|
962 | 1000 | "timezone": "",
|
963 | 1001 | "title": "Coder Dashboard",
|
964 | 1002 | "uid": "cb63c6ac-e392-42a9-a966-ee642b9c997c",
|
965 |
| - "version": 9, |
| 1003 | + "version": 10, |
966 | 1004 | "weekStart": ""
|
967 | 1005 | }
|
0 commit comments