November 29, 2018 | Written by: Vadim Raskin
Categorized: Compute Services | What's New
Share this post:
IBM Cloud Functions + IBM Monitoring
Good news! The monitoring of IBM Cloud Functions is easier than ever with our new IBM Cloud Monitoring service integration. From now on, you can get insights on cold or warm starts, action invocation failures, and action concurrency characteristics. The functionality should already be part of your Cloud Functions instance, which means you can visualize your data from any new invocation in Grafana. This integration does not replace the existing monitoring dashboard but adds to the functionality by allowing more flexibility. You can use a pre-generated dashboard from the community from Grafana.com, or you can create your own.
There are two types of metrics that are available: performance and concurrency.
- Performance metrics encompass the break-down of the action duration and the response codes.
- Concurrency metrics focus on the current in-flight actions.
What can I expect to see?
If you chose to download a pre-generated dashboard, you might see something similar to the following picture if you have activations in your namespace.
You might also see a dashboard similar to the following image that displays the data about action duration. In this example, you can see that it varies between three and four milliseconds. You can use this dashboard to predict your costs or monitor abnormalities in action behaviour. So, say you want to monitor your production system. The IBM Cloud Monitoring service provides the ability to enable alerts that you can use to send an email or trigger a PagerDuty incident, depending on whether the observed value surpasses your set threshold.
Another option is to create your own dashboard to show other metrics. This example shows the metric init-time. This is what is known as the “cold start time” or the time that is needed for the user code to be injected into the container. The following graph shows a stable 0 to 15 minutes period which indicates the usage of a warm container. You can also monitor the number of concurrent activations and concurrency throttles per minute. The concurrency throttles are emitted when you exceed your concurrency limits.
Ready to get started? Check out the documentation and try out the feature in IBM Cloud Monitoring service today.
Get started with the documentation
We’d love to hear from you with feedback and questions! You can get help for technical questions at Stack Overflow by using the ibm-functions tag. For non-technical questions, you can find us at IBM developerWorks with the functions tag. For defect or support needs, use the support section that is found in the IBM Cloud menu.