Skip to content

Commit 5852c86

Browse files
committed
doc: add configuration example
Signed-off-by: lob <[email protected]>
1 parent 3cd9dd2 commit 5852c86

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

config.example.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
logLevel: debug
22
logFormat: json
3+
throttlePeriod: 10
4+
kubeQPS: 60
5+
kubeBurst: 60
36
# namespace: my-namespace-only # Omitting it defaults to all namespaces.
47
route:
58
# Main route
69
routes:
710
# This route allows dumping all events because it has no fields to match and no drop rules.
811
- match:
912
- receiver: "dump"
10-
# This starts another route, drops all the events in *test* namespaces and Normal events
11-
# for capturing critical events
13+
# This starts another route, drops all the events in *test* namespaces and Normal events
14+
# for capturing critical events
1215
- drop:
1316
- namespace: "*test*"
1417
- type: "Normal"
@@ -17,10 +20,10 @@ route:
1720
- receiver: "pipe"
1821
# This a final route for user messages
1922
- match:
20-
- kind: "Pod|Deployment|ReplicaSet"
21-
labels:
22-
version: "dev"
23-
receiver: "slack"
23+
- kind: "Pod|Deployment|ReplicaSet"
24+
labels:
25+
version: "dev"
26+
receiver: "slack"
2427
receivers:
2528
- name: "dump"
2629
elasticsearch:

0 commit comments

Comments
 (0)