AWS EventBridge¶
AWS EventBridge displayed metrics include event delivery latency, throughput, event scale, and scalability. These metrics reflect the performance and reliability of EventBridge when handling large-scale event streams and real-time data delivery.
Configuration¶
Install Func¶
It is recommended to enable Guance integration - extension - hosted Func: all prerequisites are automatically installed, please continue with script installation.
If you deploy Func manually, refer to Manually Deploy Func
Installation Script¶
Note: Please prepare an Amazon AK that meets the requirements in advance (for simplicity, you can directly grant global read-only permission
ReadOnlyAccess
)
Hosted Version Enablement Script¶
- Log in to Guance Console
- Click on the 【Integration】 menu, select 【Cloud Account Management】
- Click 【Add Cloud Account】, select 【AWS】, fill in the required information on the interface; if cloud account information has been configured before, skip this step
- Click 【Test】, after a successful test, click 【Save】. If the test fails, check whether the related configuration information is correct and retest.
- In the 【Cloud Account Management】 list, you can see the added cloud accounts. Click the corresponding cloud account to enter the details page.
- On the cloud account detail page, click the 【Integration】 button. Under the
Not Installed
list, findAWS EventBridge
, click the 【Install】 button, and install it through the pop-up installation interface.
Manual Enablement Script¶
-
Log in to the Func Console, click 【Script Market】, go to the official script market, search:
guance_aws_eventbridge
-
After clicking 【Install】, input the corresponding parameters: AWS AK ID, AK Secret, and account name.
-
Click 【Deploy Startup Script】, the system will automatically create a
Startup
script set and automatically configure the corresponding startup scripts. -
After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】, which will immediately execute once without waiting for the scheduled time. Wait for a moment, then you can view the execution task records and corresponding logs.
Verification¶
- Confirm in 「Management / Automatic Trigger Configuration」 whether the corresponding task has an automatic trigger configuration. You can also view the corresponding task records and logs to check for any abnormalities.
- In Guance, under 「Infrastructure / Custom」, check if asset information exists.
- In Guance, under 「Metrics」, check if there are corresponding monitoring data.
Metrics¶
After configuring Amazon-CloudWatch, the default metric set is as follows. You can collect more metrics through configuration Amazon CloudWatch Metrics Details
Instance Metrics¶
The AWS/Events
namespace includes the following instance metrics.
Metric | Description |
---|---|
Invocations |
The number of times rules invoke targets in response to events. This includes successful and failed invocations but does not include throttling or retry attempts until they permanently fail. It does not include DeadLetterInvocations. Note: EventBridge only sends this metric to CloudWatch if it is non-zero. Valid dimension: RuleName. Unit: Count |
TriggeredRules |
The number of rules that have run and matched any events. You won't see this metric until rules have triggered in CloudWatch. Valid dimension: RuleName. Unit: Count |
## Objects |
The collected AWS EventBridge object data structure can be viewed from 「Infrastructure - Custom」
{
"measurement": "aws_eventbridge",
"tags": {
"Arn": "arn:aws-cn:events:cn-north-1:294654068288:rule/hn-test-lambda",
"class": "aws_eventbridge",
"cloud_provider": "aws",
"EventBusName": "default",
"name": "arn:aws-cn:events:cn-north-1:294654068288:rule/hn-test-lambda",
"RegionId": "cn-north-1",
"RuleName": "hn-test-lambda"
}
}
Note: Fields in
tags
may change with subsequent updates