Agent ConfigMap
Example Agent ConfigMap for ArgoCD.
less than a minute
A file like the following example can be used as a ConfigMap to manage the Edge Delta agent configuration using ArgoCD.
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=.*
- pod=argocd*
- pod=flog*
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: edpod
log:
level: info
anomaly_capture_size: 1000
anomaly_confidence_period: 30m0s
anomaly_tolerance: 0.15
anomaly_coefficient: 5
agent_stats_enabled: true
internal_prom_stats_enabled: true