|
| 1 | +{ |
| 2 | + "label": "beta", |
| 3 | + "metric_keys": [ |
| 4 | + "aws_bedrock_invocations" |
| 5 | + ], |
| 6 | + "dashboard": { |
| 7 | + "title": "AWS/Bedrock", |
| 8 | + "description": "Monitor Amazon Bedrock model invocations, latency, errors, throttles, and token usage.", |
| 9 | + "visuals": [ |
| 10 | + { |
| 11 | + "type": "timeseries", |
| 12 | + "display": "line", |
| 13 | + "format": "number", |
| 14 | + "draw_null_as_zero": true, |
| 15 | + "title": "Invocations", |
| 16 | + "description": "Number of model invocation requests.", |
| 17 | + "line_label": "%name% %ModelId%", |
| 18 | + "metrics": [ |
| 19 | + { |
| 20 | + "name": "aws_bedrock_invocations", |
| 21 | + "fields": [{ "field": "GAUGE" }], |
| 22 | + "tags": [{ "key": "ModelId", "value": "*" }] |
| 23 | + } |
| 24 | + ] |
| 25 | + }, |
| 26 | + { |
| 27 | + "type": "timeseries", |
| 28 | + "display": "line", |
| 29 | + "format": "number", |
| 30 | + "draw_null_as_zero": true, |
| 31 | + "title": "Invocation Errors", |
| 32 | + "description": "Client-side (4xx) and server-side (5xx) invocation errors.", |
| 33 | + "line_label": "%name% %ModelId%", |
| 34 | + "metrics": [ |
| 35 | + { |
| 36 | + "name": "aws_bedrock_invocation_client_errors", |
| 37 | + "fields": [{ "field": "GAUGE" }], |
| 38 | + "tags": [{ "key": "ModelId", "value": "*" }] |
| 39 | + }, |
| 40 | + { |
| 41 | + "name": "aws_bedrock_invocation_server_errors", |
| 42 | + "fields": [{ "field": "GAUGE" }], |
| 43 | + "tags": [{ "key": "ModelId", "value": "*" }] |
| 44 | + } |
| 45 | + ] |
| 46 | + }, |
| 47 | + { |
| 48 | + "type": "timeseries", |
| 49 | + "display": "line", |
| 50 | + "format": "duration", |
| 51 | + "draw_null_as_zero": false, |
| 52 | + "title": "Invocation Latency", |
| 53 | + "description": "Time taken to process model invocations.", |
| 54 | + "line_label": "%name% %ModelId%", |
| 55 | + "metrics": [ |
| 56 | + { |
| 57 | + "name": "aws_bedrock_invocation_latency", |
| 58 | + "fields": [{ "field": "GAUGE" }], |
| 59 | + "tags": [{ "key": "ModelId", "value": "*" }] |
| 60 | + } |
| 61 | + ] |
| 62 | + }, |
| 63 | + { |
| 64 | + "type": "timeseries", |
| 65 | + "display": "line", |
| 66 | + "format": "number", |
| 67 | + "draw_null_as_zero": true, |
| 68 | + "title": "Throttles", |
| 69 | + "description": "Number of invocations throttled due to service limits.", |
| 70 | + "line_label": "%name% %ModelId%", |
| 71 | + "metrics": [ |
| 72 | + { |
| 73 | + "name": "aws_bedrock_invocation_throttles", |
| 74 | + "fields": [{ "field": "GAUGE" }], |
| 75 | + "tags": [{ "key": "ModelId", "value": "*" }] |
| 76 | + } |
| 77 | + ] |
| 78 | + }, |
| 79 | + { |
| 80 | + "type": "timeseries", |
| 81 | + "display": "line", |
| 82 | + "format": "number", |
| 83 | + "draw_null_as_zero": true, |
| 84 | + "title": "Input vs Output Tokens", |
| 85 | + "description": "Number of tokens in model input and output.", |
| 86 | + "line_label": "%name% %ModelId%", |
| 87 | + "metrics": [ |
| 88 | + { |
| 89 | + "name": "aws_bedrock_input_token_count", |
| 90 | + "fields": [{ "field": "GAUGE" }], |
| 91 | + "tags": [{ "key": "ModelId", "value": "*" }] |
| 92 | + }, |
| 93 | + { |
| 94 | + "name": "aws_bedrock_output_token_count", |
| 95 | + "fields": [{ "field": "GAUGE" }], |
| 96 | + "tags": [{ "key": "ModelId", "value": "*" }] |
| 97 | + } |
| 98 | + ] |
| 99 | + }, |
| 100 | + { |
| 101 | + "type": "timeseries", |
| 102 | + "display": "line", |
| 103 | + "format": "number", |
| 104 | + "draw_null_as_zero": true, |
| 105 | + "title": "Output Images", |
| 106 | + "description": "Number of images generated by image models.", |
| 107 | + "line_label": "%name% %ModelId%", |
| 108 | + "metrics": [ |
| 109 | + { |
| 110 | + "name": "aws_bedrock_output_image_count", |
| 111 | + "fields": [{ "field": "GAUGE" }], |
| 112 | + "tags": [{ "key": "ModelId", "value": "*" }] |
| 113 | + } |
| 114 | + ] |
| 115 | + } |
| 116 | + ] |
| 117 | + } |
| 118 | +} |
0 commit comments