Edge Delta config.yaml

Example ConfigMap

The following ConfigMap can be used along with this agent manifest to manage the Edge Delta agent using a local configuration.

apiVersion: v1
kind: ConfigMap
metadata:
  name: edgedelta-agent-config
  namespace: edgedelta
data:
  config.yml: |
  
    workflows:
      example_workflow:
        input_labels:
        - kubernetes_logs
        processors:
        - clustering
        - error-monitoring
        - exception-monitoring
        - failure-monitoring
        - negative-sentiment-monitoring
      log_archive_workflow:
        input_labels:
        - kubernetes_logs

    inputs:
      kubernetes:
      - labels: kubernetes_logs
        include:
        - namespace=.*
        exclude:
        - namespace=kube-system
        - namespace=kube-public
        - namespace=kube-node-lease
        - pod=edgedelta
        - pod=prometheus
        - pod=promtail
        - pod=node-exporter
        auto_detect_line_pattern: true
        boost_stacktrace_detection: true
        enable_persisting_cursor: true

    processors:
      regexes:
      - name: error-monitoring
        trigger_thresholds:
          anomaly_probability_percentage: 95
        retention: 12h0m0s
        pattern: (?i)error
      - name: exception-monitoring
        trigger_thresholds:
          anomaly_probability_percentage: 95
        retention: 12h0m0s
        pattern: (?i)exception
      - name: failure-monitoring
        trigger_thresholds:
          anomaly_probability_percentage: 95
        retention: 12h0m0s
        pattern: (?i)fail
      - name: negative-sentiment-monitoring
        trigger_thresholds:
          anomaly_probability_percentage: 95
        retention: 12h0m0s
        pattern: (?i)(exception|fail|timeout|broken|caught|denied|abort|insufficient|killed|killing|malformed|unsuccessful|outofmemory|panic|undefined)
      cluster:
        name: clustering
        num_of_clusters: 15
        samples_per_cluster: 2
        reporting_frequency: 1m0s

    version: v2

    agent_settings:
      tag: configmap_agent
      log:
        level: info
      anomaly_capture_size: 1000
      anomaly_confidence_period: 30m0s
      anomaly_tolerance: 0.15
      anomaly_coefficient: 5
      agent_stats_enabled: true
      

See Also:

GitOps Principles Deployment of Edge Delta