Skip to content

Latest commit

 

History

History
 
 

README.md

Hello World

This is a simple example to get started with Thundra.

You will learn how to observe the invocation metrics of lambda functions on Thundra.


How to run using serverless

1 - Install dependencies, in repository directory:

Unix:

./mvnw clean package

Windows:

mvnw.cmd clean install

maven-clean-package

2 - Login to Thundra to create your API key:

create-api-key

3 - Configure custom field in examples-java/hello-world/serverless.yml:

custom:
    deploymentBucket: <your-s3-deployment-bucket>
    thundraApiKey: <your-api-key>
    ...

hello-world-edit

4 - Deploy, in examples-java/hello-world directory:

sls deploy

hello-world-sls-deploy

5 - Invoke, in examples-java/hello-world directory:

sls invoke --function hello-world --data '{"msg":"Hello World!"}'

hello-world-sls-invoke

6 - Enjoy your flight with Thundra!

Visit Thundra to observe your metrics. It might take 1-2 minutes to be visible.

hello-world-observe