Brandon

AWS Lambda Alias

Recommended Posts

GX2WXT

A single Lambda function might have several versions.  The default Lambda datasource monitors and alerts on the aggregate performance of each Lambda function.  Using the Alias functionality in AWS, this datasource returns CloudWatch metrics specifically for the versions to which you have assigned aliases, allowing you to customize alert thresholds or compare performance across different versions of the same function.  This datasource does not automatically discover aliases and begin monitoring them (as this could very quickly translate into several Aliases being monitored and drive up your CloudWatch API bill). Instead, add only the Aliases you want monitored by adding the device property "lambda.aliases" either to individual Lambda functions or at the group level if you're using the same Alias across several lambda functions.  To add more than one, simply list them separated with a single space - e.g: "Prod QA01 QA02".  If an alias does not exist, no data will be returned.

This datasource is otherwise a clone of the existing AWS_Lambda datasource with the default alert thresholds.

image.png.a6476c4ee2ae5ec359fd860789113f64.png

image.png.b4bcbc78e6dfe3fffb4e9ff889e53fe4.png

  • Upvote 2

Share this post


Link to post
Share on other sites

I like it. I made two modifications to our local copy:
 - disabled Active Discovery
 - changed the metric path from Resource=##WILDVALUE## to Resource=##system.aws.resourceid##:##WILDVALUE##

Since adding a property is a manual step anyway, I figured keeping this LM resource as "cloudy" as possible better suited our needs. The scripted Active Discovery never created the DSI for me and that's probably because I didn't assign a collector to the monitor the LM Cloud resource. 

Edited by Joe Tran
bullet list weirdness in WYSIWYG

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.