-
Notifications
You must be signed in to change notification settings - Fork 486
/
Copy pathstatic_pipeline_example.yaml
51 lines (50 loc) · 1.33 KB
/
static_pipeline_example.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
50
51
clients:
- url: http://localhost/loki/api/v1/push
scrape_configs:
- job_name: example
encoding: UTF-16
decompression:
enabled: true
format: z
initial_delay: 30s
pipeline_stages:
- json:
expressions:
face: smiley
hand: thumbs-up
source: video
drop_malformed: true
relabel_configs:
- source_labels:
- __trail__
target_label: __path__
- source_labels:
- __name__
action: drop
static_configs:
- targets:
- this
- is
- actually
- used
labels:
__path__: /var/log/captain_scott_last_expedition.log
__path__exclude__: /var/log/sensational_news.log
category: fun
- targets:
- one_more
labels:
__path__: /shelf/books/star_trek*
__path__exclude__: /shelf/books/star_wars*
category: sf
quality: high
- labels:
__path__: /var/log/this_is_not_used.log
category: superfluous
- labels: { }
# Include k8s config to demonstrate how other discovery features differ from static_configs
kubernetes_sd_configs:
- role: pod
kubeconfig_file: /home/toby/.kube/config
tracing: { enabled: false }
server: { register_instrumentation: false }