Overview
This input type allows you to specify Kubernetes pods and namespaces for Edge Delta to monitor.
Review Parameters
Review the following parameters that you can configure in the Edge Delta App:
Visual Editor | YAML | Description |
Kubernetes Labels | labels |
Enter a descriptive label for this input. When you create a workflow, you will use this label to enter your input into the workflow. apache,errorcheck is the default label. This parameter is required. Review the following example: labels: "apache,errorcheck" |
Kubernetes Include | include |
Enter the Kubernetes attributes to include. To specify which input to add, you must provide include/exclude regex filters.
This parameter is optional. Review the following example: include: - "pod=^apache.*$,namespace=.*web*" |
Kubernetes Exclude | exclude |
Enter the Kubernetes attributes to exclude. To specify which input to add, you must provide include/exclude regex filters.
This parameter is optional. Review the following example: exclude: - "namespace=^kube-nginx$" - "pod=.*nginx*,kind=StatefulSet" |
Auto Line Detection |
auto_detect_line_pattern |
Enter true or false to enable auto line detection for log messages with multiple lines. This parameter is optional. Review the following example: auto_detect_line_pattern: true |
Boost Stacktrace Detection |
boost_stracktrace_detection |
Enter true or false to enhance (or troubleshoot missed patterns) the Auto Line Detection parameter. This parameter is optional. Review the following example: boost_stacktrace_detection: true |
Filters |
filters |
Select an existing filter to add to this input.
This parameter is optional. Review the following example: filters: |
Not applicable |
enrichments |
You can use this parameter to enrich data with specified extracted fields. To learn how to enrich data from inputs, see Enrich Input Data. This parameter is optional. Review the following example: enrichments: dynamic: field_mappings: # if the field value starts with "aws-instance" then instance metadata is get from aws ec2 instance. # for more info ref: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html - field_name: "instance_id" value: '{{".aws-instance.instance-id"}}' - field_name: "instance_type" value: '{{".aws-instance.instance-type"}}' |
Review Sample Configuration
Review the following sample configuration:
kubernetes:
- labels: "nginx,errorcheck"
include:
- "pod=^nginx.*$,kind=ReplicaSet,namespace=default,container-name=nginx,container-image=docker.io/nginx:latest,labels.my_app=abc"
exclude:
- "namespace=^kube-system$"
- labels: "apache,errorcheck"
include:
- "pod=^apache.*$,namespace=.*web*"
exclude:
- "namespace=^kube-nginx$"
- "pod=.*nginx*,kind=StatefulSet"
- labels: "k8s with enrichment dynamic fields from labels"
include:
- "pod=flog,namespace=default"
enrichments:
dynamic:
field_mappings:
- field_name: "service"
value: '{{".labels.service"}}'
- field_name: "source"
value: '.annotations.kubernetes.io/{{.container_name}}.logs'
json_path: "[0].source"
- labels: "k8s with enrichment aws metadata"
include:
- "pod=flog,namespace=default"
enrichments:
dynamic:
field_mappings:
- field_name: "instance_id"
value: '{{".aws-instance.instance-id"}}'
- field_name: "instance_type"
value: '{{".aws-instance.instance-type"}}'