-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlab7.yaml
49 lines (47 loc) · 1.74 KB
/
lab7.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
splunkObservability:
realm: us1
splunkPlatform:
index: ps107
endpoint: https://http-inputs-ps-107.splunkcloud.com
insecureSkipVerify: true
agent:
config:
receivers:
kubeletstats:
insecure_skip_verify: true
processors:
filter/test-app: # Add a new filter processor named test-app
error_mode: ignore
metrics:
metric:
# Metrics matching this condition below will be dropped
- 'resource.attributes["k8s.namespace.name"] == "test-app"'
filter/dns:
logs:
log_record:
- IsMatch(resource.attributes["k8s.container.name"], "coredns")
service:
pipelines:
# Update existing metrics pipeline.
# If you have added any new metrics pipelines, update them as well.
metrics:
# Since during the OTEL config merge process, list gets replaced
# You must re-state the full processors list (existing + new)
processors: [memory_limiter, batch, resourcedetection, resource, filter/test-app]
logs:
processors: [memory_limiter, batch, resourcedetection, resource, resource/add_agent_k8s, filter/dns]
clusterReceiver: # This change will only affect the clusterReceiver
config:
processors:
filter/test-app:
error_mode: ignore
metrics:
metric:
# Metrics matching this condition will be dropped
- 'resource.attributes["k8s.namespace.name"] == "test-app"'
service:
pipelines:
metrics:
# Since during the OTEL config merge process, list gets replaced
# You must re-state the full processors list (existing + new)
processors: [memory_limiter, batch, resource, resource/k8s_cluster, filter/test-app]