Creating an Alarm Rule
After creating a function and trigger, you can monitor the invocation and running statuses of the function in real time.
Viewing Function Metrics
FunctionGraph differentiates the metrics of a function by version, allowing you to query the metrics of a specific function version.
Procedure
Create an alarm rule for a function to report metrics to Cloud Eye so that you can view monitoring graphs and alarm messages on the Cloud Eye console.
- Log in to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
- Click the name of the desired function.
- On the displayed function details page, select a function version or alias, and choose Monitoring > Metrics.
- Click Create Alarm Rule.
- Set alarm parameters and click Next as shown in Figure 1.
- Enter a rule name and click OK.
After a function is deleted, the alarm rules created for it will not be updated in real time on the Cloud Eye console and may continue to be displayed there for a maximum of seven days.
Function Metrics
Table 1 lists the function metrics that can be monitored by Cloud Eye.
Metric |
Display Name |
Description |
Unit |
Upper Limit |
Lower Limit |
Recommended Threshold |
Value Type |
Dimension |
---|---|---|---|---|---|---|---|---|
count |
Invocations |
Number of function invocations |
Count |
- |
0 |
- |
int |
package-functionname |
failcount |
Errors |
Number of invocation errors |
Count |
- |
0 |
- |
int |
package-functionname |
rejectcount |
Throttles |
Number of function throttles |
Count |
- |
0 |
- |
int |
package-functionname |
duration |
Average Duration |
Average duration of function invocation |
ms |
- |
0 |
- |
int |
package-functionname |
maxDuration |
Maximum Duration |
Maximum duration of function invocation |
ms |
- |
0 |
- |
int |
package-functionname |
minDuration |
Minimum Duration |
Minimum duration of function invocation |
ms |
- |
0 |
- |
int |
package-functionname |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot