|
113 | 113 | }, |
114 | 114 | "editorMode": "code", |
115 | 115 | "exemplar": false, |
116 | | - "expr": "topk(7,histogram_quantile(0.50, sum(rate(latency_bucket{service_name=~\"$service\", operation=~\"$operation\"}[$__rate_interval])) by (le,service_name)))", |
| 116 | + "expr": "topk(7,histogram_quantile(0.50, sum(rate(duration_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name)))", |
117 | 117 | "format": "time_series", |
118 | 118 | "hide": true, |
119 | 119 | "instant": false, |
|
129 | 129 | }, |
130 | 130 | "editorMode": "code", |
131 | 131 | "exemplar": false, |
132 | | - "expr": "topk(7,histogram_quantile(0.95, sum(rate(latency_bucket{service_name=~\"$service\", operation=~\"$operation\"}[$__range])) by (le,service_name)))", |
| 132 | + "expr": "topk(7,histogram_quantile(0.95, sum(rate(duration_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (le,service_name)))", |
133 | 133 | "hide": false, |
134 | 134 | "instant": true, |
135 | 135 | "interval": "", |
|
144 | 144 | }, |
145 | 145 | "editorMode": "code", |
146 | 146 | "exemplar": false, |
147 | | - "expr": "histogram_quantile(0.99, sum(rate(latency_bucket{service_name=~\"$service\", operation=~\"$operation\"}[$__rate_interval])) by (le,service_name))", |
| 147 | + "expr": "histogram_quantile(0.99, sum(rate(duration_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))", |
148 | 148 | "hide": true, |
149 | 149 | "interval": "", |
150 | 150 | "legendFormat": "quantile99", |
|
158 | 158 | }, |
159 | 159 | "editorMode": "code", |
160 | 160 | "exemplar": false, |
161 | | - "expr": "histogram_quantile(0.999, sum(rate(latency_bucket{service_name=~\"$service\", operation=~\"$operation\"}[$__rate_interval])) by (le,service_name))", |
| 161 | + "expr": "histogram_quantile(0.999, sum(rate(duration_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))", |
162 | 162 | "hide": true, |
163 | 163 | "interval": "", |
164 | 164 | "legendFormat": "quantile999", |
|
238 | 238 | }, |
239 | 239 | "editorMode": "code", |
240 | 240 | "exemplar": false, |
241 | | - "expr": "topk(7,sum by (service_name) (rate( calls_total{service_name=~\"$service\", operation=~\"$operation\"}[$__range])))", |
| 241 | + "expr": "topk(7,sum by (service_name) (rate(calls{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])))", |
242 | 242 | "format": "time_series", |
243 | 243 | "instant": true, |
244 | 244 | "interval": "", |
|
316 | 316 | }, |
317 | 317 | "editorMode": "code", |
318 | 318 | "exemplar": false, |
319 | | - "expr": "topk(7,sum(rate( calls_total{status_code=\"STATUS_CODE_ERROR\",service_name=~\"$service\", operation=~\"$operation\"}[$__range])) by (service_name))", |
| 319 | + "expr": "topk(7,sum(rate(calls{status_code=\"STATUS_CODE_ERROR\",service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (service_name))", |
320 | 320 | "instant": true, |
321 | 321 | "interval": "", |
322 | 322 | "legendFormat": "{{service_name}}", |
|
351 | 351 | "refId": "A" |
352 | 352 | } |
353 | 353 | ], |
354 | | - "title": "Operations Level - Throughput", |
| 354 | + "title": "span_names Level - Throughput", |
355 | 355 | "type": "row" |
356 | 356 | }, |
357 | 357 | { |
|
489 | 489 | "uid": "webstore-metrics" |
490 | 490 | }, |
491 | 491 | "exemplar": false, |
492 | | - "expr": "topk(7, sum(rate(calls_total{service_name=~\"$service\", operation=~\"$operation\"}[$__range])) by (operation,service_name)) ", |
| 492 | + "expr": "topk(7, sum(rate(calls{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (span_name,service_name)) ", |
493 | 493 | "format": "table", |
494 | 494 | "instant": true, |
495 | 495 | "interval": "", |
|
502 | 502 | "uid": "webstore-metrics" |
503 | 503 | }, |
504 | 504 | "exemplar": false, |
505 | | - "expr": "topk(7, sum(rate(calls_total{status_code=\"STATUS_CODE_ERROR\",service_name=~\"$service\", operation=~\"$operation\"}[$__range])) by (operation,service_name))", |
| 505 | + "expr": "topk(7, sum(rate(calls{status_code=\"STATUS_CODE_ERROR\",service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (span_name,service_name))", |
506 | 506 | "format": "table", |
507 | 507 | "hide": false, |
508 | 508 | "instant": true, |
|
511 | 511 | "refId": "Error Rate" |
512 | 512 | } |
513 | 513 | ], |
514 | | - "title": "Top 7 Operations and Errors (APM Table)", |
| 514 | + "title": "Top 7 span_names and Errors (APM Table)", |
515 | 515 | "transformations": [ |
516 | 516 | { |
517 | 517 | "id": "seriesToColumns", |
518 | 518 | "options": { |
519 | | - "byField": "operation" |
| 519 | + "byField": "span_name" |
520 | 520 | } |
521 | 521 | }, |
522 | 522 | { |
|
576 | 576 | "Rate in Service": 5, |
577 | 577 | "bRate": 2, |
578 | 578 | "eRate": 3, |
579 | | - "operation": 0 |
| 579 | + "span_name": 0 |
580 | 580 | }, |
581 | 581 | "renameByName": { |
582 | 582 | "Rate in Service": "Service", |
583 | 583 | "bRate": "Rate", |
584 | 584 | "eRate": "Error Rate", |
585 | | - "operation": "Operation Name" |
| 585 | + "span_name": "span_name Name" |
586 | 586 | } |
587 | 587 | } |
588 | 588 | }, |
|
624 | 624 | "refId": "A" |
625 | 625 | } |
626 | 626 | ], |
627 | | - "title": "Operation Level - Latencies", |
| 627 | + "title": "span_name Level - Latencies", |
628 | 628 | "type": "row" |
629 | 629 | }, |
630 | 630 | { |
|
696 | 696 | }, |
697 | 697 | "editorMode": "code", |
698 | 698 | "exemplar": false, |
699 | | - "expr": "topk(7,histogram_quantile(0.50, sum(rate(latency_bucket{service_name=~\"$service\", operation=~\"$operation\"}[$__rate_interval])) by (le,service_name)))", |
| 699 | + "expr": "topk(7,histogram_quantile(0.50, sum(rate(duration_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name)))", |
700 | 700 | "format": "time_series", |
701 | 701 | "hide": true, |
702 | 702 | "instant": false, |
|
712 | 712 | }, |
713 | 713 | "editorMode": "code", |
714 | 714 | "exemplar": false, |
715 | | - "expr": "topk(7,histogram_quantile(0.95, sum(rate(latency_bucket{service_name=~\"$service\", operation=~\"$operation\"}[$__range])) by (le,operation)))", |
| 715 | + "expr": "topk(7,histogram_quantile(0.95, sum(rate(duration_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__range])) by (le,span_name)))", |
716 | 716 | "hide": false, |
717 | 717 | "instant": true, |
718 | 718 | "interval": "", |
719 | | - "legendFormat": "{{operation}}", |
| 719 | + "legendFormat": "{{span_name}}", |
720 | 720 | "range": false, |
721 | 721 | "refId": "B" |
722 | 722 | }, |
|
727 | 727 | }, |
728 | 728 | "editorMode": "code", |
729 | 729 | "exemplar": false, |
730 | | - "expr": "histogram_quantile(0.99, sum(rate(latency_bucket{service_name=~\"$service\", operation=~\"$operation\"}[$__rate_interval])) by (le,service_name))", |
| 730 | + "expr": "histogram_quantile(0.99, sum(rate(duration_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))", |
731 | 731 | "hide": true, |
732 | 732 | "interval": "", |
733 | 733 | "legendFormat": "quantile99", |
|
741 | 741 | }, |
742 | 742 | "editorMode": "code", |
743 | 743 | "exemplar": false, |
744 | | - "expr": "histogram_quantile(0.999, sum(rate(latency_bucket{service_name=~\"$service\", operation=~\"$operation\"}[$__rate_interval])) by (le,service_name))", |
| 744 | + "expr": "histogram_quantile(0.999, sum(rate(duration_bucket{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])) by (le,service_name))", |
745 | 745 | "hide": true, |
746 | 746 | "interval": "", |
747 | 747 | "legendFormat": "quantile999", |
748 | 748 | "range": true, |
749 | 749 | "refId": "D" |
750 | 750 | } |
751 | 751 | ], |
752 | | - "title": "Top 3x3 - Operation Latency - quantile95", |
| 752 | + "title": "Top 3x3 - span_name Latency - quantile95", |
753 | 753 | "type": "gauge" |
754 | 754 | }, |
755 | 755 | { |
|
812 | 812 | }, |
813 | 813 | "editorMode": "code", |
814 | 814 | "exemplar": false, |
815 | | - "expr": "topk(7, sum by (operation,service_name)(increase(latency_sum{service_name=~\"${service}\", operation=~\"$operation\"}[5m]) / increase(latency_count{service_name=~\"${service}\",operation=~\"$operation\"}[5m\n])))", |
| 815 | + "expr": "topk(7, sum by (span_name,service_name)(increase(duration_sum{service_name=~\"${service}\", span_name=~\"$span_name\"}[5m]) / increase(duration_count{service_name=~\"${service}\",span_name=~\"$span_name\"}[5m\n])))", |
816 | 816 | "instant": true, |
817 | 817 | "interval": "", |
818 | | - "legendFormat": "{{operation}} [{{service_name}}]", |
| 818 | + "legendFormat": "{{span_name}} [{{service_name}}]", |
819 | 819 | "range": false, |
820 | 820 | "refId": "A" |
821 | 821 | } |
|
916 | 916 | }, |
917 | 917 | "editorMode": "code", |
918 | 918 | "exemplar": true, |
919 | | - "expr": "topk(7,sum by (operation,service_name)(increase(latency_sum{service_name=~\"$service\", operation=~\"$operation\"}[$__rate_interval]) / increase(latency_count{service_name=~\"$service\", operation=~\"$operation\"}[$__rate_interval])))", |
| 919 | + "expr": "topk(7,sum by (span_name,service_name)(increase(duration_sum{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval]) / increase(duration_count{service_name=~\"$service\", span_name=~\"$span_name\"}[$__rate_interval])))", |
920 | 920 | "instant": false, |
921 | 921 | "interval": "", |
922 | | - "legendFormat": "[{{service_name}}] {{operation}}", |
| 922 | + "legendFormat": "[{{service_name}}] {{span_name}}", |
923 | 923 | "range": true, |
924 | 924 | "refId": "A" |
925 | 925 | } |
|
945 | 945 | "type": "prometheus", |
946 | 946 | "uid": "webstore-metrics" |
947 | 947 | }, |
948 | | - "definition": "query_result(count by (service_name)(count_over_time(calls_total[$__range])))", |
| 948 | + "definition": "query_result(count by (service_name)(count_over_time(calls[$__range])))", |
949 | 949 | "hide": 0, |
950 | 950 | "includeAll": true, |
951 | 951 | "multi": true, |
952 | 952 | "name": "service", |
953 | 953 | "options": [], |
954 | 954 | "query": { |
955 | | - "query": "query_result(count by (service_name)(count_over_time(calls_total[$__range])))", |
| 955 | + "query": "query_result(count by (service_name)(count_over_time(calls[$__range])))", |
956 | 956 | "refId": "StandardVariableQuery" |
957 | 957 | }, |
958 | 958 | "refresh": 2, |
|
972 | 972 | "type": "prometheus", |
973 | 973 | "uid": "webstore-metrics" |
974 | 974 | }, |
975 | | - "definition": "query_result(sum ({__name__=~\".*calls_total\",service_name=~\"$service\"}) by (operation))", |
| 975 | + "definition": "query_result(sum ({__name__=~\".*calls\",service_name=~\"$service\"}) by (span_name))", |
976 | 976 | "hide": 0, |
977 | 977 | "includeAll": true, |
978 | 978 | "multi": true, |
979 | | - "name": "operation", |
| 979 | + "name": "span_name", |
980 | 980 | "options": [], |
981 | 981 | "query": { |
982 | | - "query": "query_result(sum ({__name__=~\".*calls_total\",service_name=~\"$service\"}) by (operation))", |
| 982 | + "query": "query_result(sum ({__name__=~\".*calls\",service_name=~\"$service\"}) by (span_name))", |
983 | 983 | "refId": "StandardVariableQuery" |
984 | 984 | }, |
985 | 985 | "refresh": 2, |
986 | | - "regex": "/.*operation=\"(.*)\".*/", |
| 986 | + "regex": "/.*span_name=\"(.*)\".*/", |
987 | 987 | "skipUrlSync": false, |
988 | 988 | "sort": 0, |
989 | 989 | "type": "query" |
|
0 commit comments