- Create an API token.
- Create an API destination.
- Create an Amazon EventBridge rule, depending on which events you want to send to
Observability Platform:
- Create an EventBridge rule for specific events, such as Amazon CloudWatch events.
- Create an EventBridge rule for AWS Health events to send those events to Observability Platform.
Create an API token
Before configuring an API destination, create an API token in Observability Platform, which you use to authenticate.Create an API destination
To configure Amazon EventBridge to send events to Observability Platform:- Create an API destination by completing the steps in the Amazon EventBridge documentation.
-
Configure the API destination you created:
- For the Authorization type, select API Key. Enter API-Token as your API key name, and enter the API token you created as the value.
-
For the destination endpoint, enter
https://ADDRESS/api/v1/data/eventsand selectPOSTas the HTTP method. ReplaceADDRESSwith your company name prefixed to your Observability Platform instance that ends in.chronosphere.io. For example,MY_COMPANY.chronosphere.io. - For the Invocation rate limit per second, enter 5 as the value.
- Select Use an existing connection and select the connection you created.
Create an Amazon EventBridge rule
You can create an Amazon EventBridge rule to get notified about specific Amazon EventBridge events in Observability Platform. First, create an API destination. Then complete the following steps:-
Create an Amazon EventBridge rule
that reacts to events:
- Define the rule detail: Enter details for the rule and select Rule with an event pattern as the rule type.
- Build the event pattern: Select Use pattern form as the creation method, and define the event pattern.
- Define the target: Select EventBridge API destination as the target type, choose your existing API destination from the list, and select Create a new role for this specific resource.
-
Expand Additional settings and configure an
input transformation
to handle mapping from an AWS event to an Observability Platform
CreateEventpayload. This definition sends the transformed event to a target instead of the original event. You configure an input path to define variables, and then configure an input template to match your event payload. -
Configure the input path to reference parameters in your event and store those
values in variables. For example:
-
Configure the input template to specify the information you want to pass to your
target. This template matches your event payload and uses the variables defined in
your input path. You must surround all variables with angle brackets
<>. For example, the following template defines an Amazon CloudWatch input: - For each additional event type you want to map to a change event, configure a rule and select your existing API destination as the target. Each rule can have its own input transformer.
Create an Amazon EventBridge rule for AWS Health
You can create an Amazon EventBridge rule to get notified about AWS Health events in Observability Platform. First, create an API destination. Then complete the following steps:- Create an Amazon EventBridge rule for AWS Health.
-
In the step where you choose the target type on the Select targets page,
configure an
input transformation
to handle mapping from an AWS event to an Observability Platform
CreateEventpayload. This definition sends the transformed event to a target instead of the original event. -
Configure the input path to reference parameters in your event and store those
values in variables. For example:
-
Configure the input template to specify the information you want to pass to your
target. This template matches your event payload and uses the variables defined in
your input path. You must surround all variables with angle brackets
<>. For example, the following template defines an AWS Health input: - Complete the remaining steps in the AWS Health documentation to create the EventBridge rule.
Troubleshooting
To return error messages and view responses from the API, configure an Amazon Simple Queue Service (SQS).- Create a queue in Amazon SQS.
- Open the Amazon EventBridge rule you created previously.
- Click the Targets tab and then click Edit.
- Expand the Additional settings section.
- In the Dead-letter queue section, click Select an Amazon SQS queue in the current AWS account to use as the dead-letter queue, then select the SQS queue you created.
- Update the Amazon EventBridge rule.