{ "alert_lag": 30, "alert_period": "5", "base_search": "| mstats avg(\"function/execution_times\") as gcp_functions_execution_time avg(\"function/user_memory_bytes\") as gcp_functions_memory_bytes sum(\"function/execution_count\") as gcp_functions_executions latest(\"function/active_instances\") as gcp_functions_active sum(\"function/network_egress\") as gcp_functions_network_egress WHERE `itsi-cp-observability-indexes` by project_id, region, function_name, gcp_id span=15m | eval ITSIUniqueId = project_id + region + function_name | rename function_name as FunctionName | eval gcp_functions_memory_mb=gcp_functions_memory_bytes/1024/1024 | table _time, ITSIUniqueId, FunctionName, gcp_id, gcp_functions_execution_time, gcp_functions_memory_mb, gcp_functions_executions, gcp_functions_active, gcp_functions_network_egress", "description": "This gets SIM metrics from the GCP instance namespace using GCP's Stackdriver", "entity_filter_field": "ITSIUniqueId", "entity_split_field": "ITSIUniqueId", "is_filter_entities_to_service": true, "is_split_by_entity": true, "key": "da-itsi-cp-splunk-observability-sim-cloud-gcp-functions", "metric_qualifier": "", "metrics": [ { "aggregate_statop": "avg", "entity_statop": "avg", "fill_gaps": "null_value", "gap_custom_alert_value": "0", "gap_severity": "unknown", "gap_severity_color": "#CCCCCC", "gap_severity_color_light": "#EEEEEE", "gap_severity_value": "-1", "key": "gcp-function-execution-time", "threshold_field": "gcp_functions_execution_time", "title": "GCP Function Execution Time", "unit": "" }, { "aggregate_statop": "avg", "entity_statop": "avg", "fill_gaps": "null_value", "gap_custom_alert_value": "0", "gap_severity": "unknown", "gap_severity_color": "#CCCCCC", "gap_severity_color_light": "#EEEEEE", "gap_severity_value": "-1", "key": "gcp-function-executions", "threshold_field": "gcp_functions_executions", "title": "GCP Function Executions", "unit": "" }, { "aggregate_statop": "avg", "entity_statop": "avg", "fill_gaps": "null_value", "gap_custom_alert_value": "0", "gap_severity": "unknown", "gap_severity_color": "#CCCCCC", "gap_severity_color_light": "#EEEEEE", "gap_severity_value": "-1", "key": "gcp-function-memory", "threshold_field": "gcp_functions_memory_mb", "title": "GCP Function Memory", "unit": "mb" }, { "aggregate_statop": "avg", "entity_statop": "avg", "fill_gaps": "null_value", "gap_custom_alert_value": "0", "gap_severity": "unknown", "gap_severity_color": "#CCCCCC", "gap_severity_color_light": "#EEEEEE", "gap_severity_value": "-1", "key": "gcp-function-network-egress", "threshold_field": "gcp_functions_network_egress", "title": "GCP Function Network Egress", "unit": "" }, { "aggregate_statop": "avg", "entity_statop": "avg", "fill_gaps": "null_value", "gap_custom_alert_value": "0", "gap_severity": "unknown", "gap_severity_color": "#CCCCCC", "gap_severity_color_light": "#EEEEEE", "gap_severity_value": "-1", "key": "gcp-functions-count-active", "threshold_field": "gcp_functions_active", "title": "GCP Functions Count Active", "unit": "" } ], "search_alert_earliest": "15", "title": "SIM_cloud_gcp_functions", "version": "0.0.38" }