Monitoring a Kubeless Function
When we have successfully deployed our Kubeless function, we then need to monitor our function. This can be achieved with the kubeless function top
command. This command will provide us with the following information:
NAME
: The name of the Kubeless functionNAMESPACE
: The namespace of the functionMETHOD
: The HTTP method type (for example, GET/POST) when invoking the functionTOTAL_CALLS
: The total number of invocationsTOTAL_FAILURES
: The number of function failuresTOTAL_DURATION_SECONDS
: The total number of seconds this function has executedAVG_DURATION_SECONDS
: The average number of seconds this function has executedMESSAGE
: Any other messages
The following is the kubeless function top
output for the hello
function:
$ kubeless function top hello
The output will be as follows:
Figure 7.54: Viewing the metrics for the hello function
Now that we've monitored the function...