[{"data":1,"prerenderedAt":56},["ShallowReactive",2],{"pattern-apigw-custom-metrics":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":51,"testing":52,"videoId":6,"__hash__":55},"patterns\u002Fpatterns\u002Fapigw-custom-metrics.json","Custom metrics for Amazon API Gateway",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fabha-tripathi.json","content\u002Fcontributors\u002Fsushir-v-r.json",{"text":14},[15],"sam deploy --guided","Generates custom metrics for all custom domains in a given region","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcdn-dash-sam","serverless-patterns\u002Fcdn-dash-sam","cdn-dash-sam","template.yaml",{"headline":26,"text":27},"How it works",[28],"This pattern creates a Lambda function that scans the custom domain names and their API mappings in a region. The function then creates a custom metrics namespace in CloudWatch metrics for 200, 4xx and 5xx errors. The metric data points get populated for the requests that comes in to the APIs\u002FCDN post creation of the custom namespace.","Python","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},25,50,"apigw","Amazon API Gateway",{"x":39,"y":35,"service":40,"label":41},75,"cloudwatch","Amazon CloudWatch",{"from":43,"to":44,"label":45},"icon1","icon2","",{"bullets":47},[48],{"text":49,"link":50},"Publish Custom Metrics","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FpublishingMetrics.html","patterns\u002Fapigw-custom-metrics",{"text":53},[54],"See the GitHub repo for detailed testing instructions.","OBkX6wwk8h2zEV1o1B4B5x3S5fWXlS542JVrinu3Gi4",1779273331907]