For example a typical logging configuration would be write to Console would be like Log. ![]() ![]() Custom metric "FunctionSuccess" value depends upon the success or failure of "sample" function.Īfter running the Lambda function, we will go to the CloudWatch, there will find "custom_metric" Namespace and inside that, we will find our "FunctionSuccess". cloudwatch log client was able to put a message. Here, main.py is separate file which contains a function "sample". The above policy need to be added to the role used by Lambda to have permission to push custom metric to CloudWatch. If the system in question has only a handful of metrics that rarely change, then getting everything perfect is an easy choice, a good example of this is the HAProxy exporter. FunctionSuccess will have value "1" if the python function runs successfully or else it will have value "0". Our lambda function will push the custom metric "FunctionSuccess" to the CloudWatch. In the Project, we will consider a sample #python Function. Hi Everyone, Here is a project to implement Pushing of Custom Metrics from #lambda function to #cloudwatch and further exposing it to #prometheus using #YACE (Yet Another CloudWatch Exporter).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |