KEDA

Metrics, Dashboards, Alerts and more for KEDA Integration in Sysdig Monitor.
KEDA

This integration is enabled by default.

Versions supported: > v2.11

This integration is out-of-the-box, so it doesn’t require any exporter.

This integration has 6 metrics.

Timeseries generated: 3 metrics per Keda deployment + 1 metric per API metric timeseries

List of Alerts

AlertDescriptionFormat
[Keda] Errors in Scaled ObjectErrors detected in scaled objectPrometheus
[Keda] Autoscaling TriggeredAutoscaling has been triggered due to high number of eventsPrometheus
[Keda] Insufficient Resources for ScalingInsufficient resources detected for scalingPrometheus

List of Dashboards

Keda

The dashboard provides information on the errors, values of the metrics generated and replicas of the scaled object. Keda

List of Metrics

Metric name
keda_build_info
keda_metrics_adapter_scaled_object_errors
keda_resource_totals
keda_scaled_object_errors
keda_scaler_metrics_value
keda_trigger_totals

Prerequisites

Enable Prometheus Metrics

Keda instruments Prometheus metrics and annotates the metrics API pod with Prometheus annotations.

Make sure that the prometheus metrics are activated. If you install Keda with Helm you need to use the following flag:

--set prometheus.metricServer.enabled=true

Installation

Installing an exporter is not required for this integration.

Agent Configuration

The default agent job for this integration is as follows:

- job_name: keda-default
  tls_config:
    insecure_skip_verify: true
  kubernetes_sd_configs:
  - role: pod
  relabel_configs:
  - action: keep
    source_labels: [__meta_kubernetes_pod_host_ip]
    regex: __HOSTIPS__
  - action: drop
    source_labels: [__meta_kubernetes_pod_annotation_promcat_sysdig_com_omit]
    regex: true
  - source_labels: [__meta_kubernetes_pod_phase]
    action: keep
    regex: Running
  - action: replace
    source_labels:
    - __meta_kubernetes_pod_container_name
    regex: (keda-operator|keda-operator-metrics-apiserver|keda-admission-webhooks)
    replacement: keda
    target_label: __meta_kubernetes_pod_annotation_promcat_sysdig_com_integration_type
  - action: keep
    source_labels:
    - __meta_kubernetes_pod_annotation_promcat_sysdig_com_integration_type
    regex: "keda"
  - action: replace
    source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
    regex: ([^:]+)(?::\d+)?;(\d+)
    replacement: $1:$2
    target_label: __address__
  - action: replace
    source_labels: [__meta_kubernetes_pod_uid]
    target_label: sysdig_k8s_pod_uid
  - action: replace
    source_labels: [__meta_kubernetes_pod_container_name]
    target_label: sysdig_k8s_pod_container_name