Interested in using the Coralogix AWS Lambda Telemetry Exporter v.0.2.0 to collect and send us Lambda function metrics? This tutorial provides two methods for setting up a dashboard for monitoring a single Lambda function:
STEP 1. Download the attached JSON file.
STEP 2. Import the file to Grafana as a pre-built dashboard.
Use the example presented here to create a dashboard that fits your specific needs.
STEP 1. Create a new Coralogix – Grafana dashboard.
STEP 2. Create a new variable
faas_name
Constant
STEP 3. Create panels.
Invocations
Hidden
requests/sec (rps)
0
sum(increase(faas_executions_total{faas_name="$faas_name"}[1m])) OR on() vector(0)
Durations (per invocation)
milliseconds (ms)
0
sum(increase(faas_init_duration_ms_sum{faas_name="$faas_name"}[1m])) / sum(increase(faas_invoke_duration_ms_count{faas_name="$faas_name"}[1m]))
with Legend = Initialisation duration (averaged over all invocations)
sum(increase(faas_restore_duration_ms_sum{faas_name="$faas_name"}[1m])) / sum(increase(faas_invoke_duration_ms_count{faas_name="$faas_name"}[1m]))
with Legend = Restoration duration (averaged over all invocations)
sum(increase(faas_invoke_duration_ms_sum{faas_name="$faas_name"}[1m])) / sum(increase(faas_invoke_duration_ms_count{faas_name="$faas_name"}[1m]))
with Legend = Average invoke duration
sum(increase(faas_overhead_duration_ms_sum{cx_subsystem_name="lambda-telemetry-test"}[1m])) / sum(increase(faas_invoke_duration_ms_count{cx_subsystem_name="lambda-telemetry-test"}[1m]))
with Legend = Average overhead (runtime after invoke) duration
Errors/Timeouts
requests/sec (rps)
0
sum(increase(faas_errors_total{faas_name="$faas_name"}[1m])) OR on() vector(0)
with Label = errors
sum(increase(faas_timeouts_total{faas_name="$faas_name"}[1m])) OR on() vector(0)
with Label = timeouts
Memory Consumption
megabytes
0
max(faas_mem_usage_MB{faas_name="$faas_name"})
with Label = maximum memory consumption
max(faas_mem_limit_MB{faas_name="$faas_name"})
with Label = available memory
Cold Invocations
requests/sec (rps)
0
sum(increase(faas_init_duration_ms_count{faas_name="$faas_name"}[1m]))
with Label = Cold invocations
sum(increase(faas_restore_duration_ms_count{faas_name="$faas_name"}[1m]))
with Label = Restorations
Initialization / Restoration Duration
milliseconds (ms)
0
sum(increase(faas_init_duration_ms_sum{faas_name="$faas_name"}[1m])) / sum(increase(faas_init_duration_ms_count{faas_name="$faas_name"}[1m]))
with Label = Cold invocations
sum(increase(faas_restore_duration_ms_sum{faas_name="$faas_name"}[1m])) / sum(increase(faas_restore_duration_ms_count{faas_name="$faas_name"}[1m]))
with Label = Average restoration duration
STEP 4. Organize panels.
Cold start
STEP 5. Enjoy your Lambda Function Dashboard!
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].