After configuring Functionbeat and defining cloud functions for the services you want to monitor, deploy the functions to your cloud provider. To do this, you can:
Use the built-in manager to deploy, update, or delete Functionbeat functions when you don’t have your own deployment infrastructure or process in place.
During deployment, the Functionbeat manager:
Exports an AWS CloudFormation template. You can inspect the template by
Creates a zip package that includes the function code and
- Uploads the package to the specified cloud provider.
See Step 4: Deploy Functionbeat in the getting started to learn how to deploy functions by using the Functionbeat manager.
If you don’t want to use the Functionbeat manager, use your own deployment infrastructure. To do this, create a package, then deploy it to your cloud provider:
Set the following environment variables:
- This setting makes the function skip the ownership check on the configuration file.
Specifies a comma- separated list of functions that are enabled in the configuration file. For example, to package functions called
linux and mac:
export BEAT_STRICT_PERMS=false export ENABLED_FUNCTIONS=my-kinesis,my-cloudwatch-logs
set BEAT_STRICT_PERMS=false set ENABLED_FUNCTIONS=my-kinesis,my-cloudwatch-logs
For easier management, we recommend having one Lambda per function.
packagecommand to package the functions and dependencies into an archive. For example:
linux and mac:
./functionbeat -v -e -d "*" package --output /path/to/file.zip
.\functionbeat.exe -v -e -d "*" package --output /path/to/file.zip
This command generates a deployment package (called
file.zipin the example) that contains:
a binary, called
functionbeat-aws, that contains the function code
/tmp/functionbeat.keystore, if a keystore is used
- a binary, called
If certificates are required, add the cert files to the zip package under the
same path as the configured
- Deploy the package, using the infrastructure and automation supported by your cloud provider. For example, to deploy the package to AWS, export the AWS CloudFormation template managed by Functionbeat, and modify it to work with your infrastructure.