defaults.yaml 2.4 KB
Newer Older
Benjamin DUPUIS's avatar
initial  
Benjamin DUPUIS committed
1
2
3
---
loki:
  server:
Benjamin DUPUIS's avatar
Benjamin DUPUIS committed
4
5
6
7
    enable: false
    source: http://localhost/loki-0.2.0.el7
    source_hash: md5=513a2d3706b59156dc07ca6ec62d444e
    skip_verify: false
Benjamin DUPUIS's avatar
initial  
Benjamin DUPUIS committed
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
52
53
54
55
56
57
58
    install_dir: /opt
    config:
      auth_enabled: false
      server:
        http_listen_port: 3100
      ingester:
        lifecycler:
          address: 127.0.0.1
          ring:
            kvstore:
              store: inmemory
            replication_factor: 1
          final_sleep: 0s
        chunk_idle_period: 5m
        chunk_retain_period: 30s
      schema_config:
        configs:
          - from: 2018-04-15
            store: boltdb
            object_store: filesystem
            schema: v9
            index:
              prefix: index_
              period: 168h
      storage_config:
        boltdb:
          directory: /var/lib/loki/index
        filesystem:
          directory: /var/lib/loki/chunks
      limits_config:
        enforce_metric_name: false
        reject_old_samples: true
        reject_old_samples_max_age: 168h
      chunk_store_config:
        max_look_back_period: 0
      table_manager:
        chunk_tables_provisioning:
          inactive_read_throughput: 0
          inactive_write_throughput: 0
          provisioned_read_throughput: 0
          provisioned_write_throughput: 0
        index_tables_provisioning:
          inactive_read_throughput: 0
          inactive_write_throughput: 0
          provisioned_read_throughput: 0
          provisioned_write_throughput: 0
        retention_deletes_enabled: false
        retention_period: 0

  promtail:
    install_dir: /opt
Benjamin DUPUIS's avatar
Benjamin DUPUIS committed
59
60
61
62
    source: http://localhost/promtail-0.2.0.el7
    source_hash: md5=bd0f67b1ad4f940138723d02afe4e71d
    skip_verify: false
    enable: false
Benjamin DUPUIS's avatar
initial  
Benjamin DUPUIS committed
63
64
65
66
67
    config:
      server:
        http_listen_port: 9080
        grpc_listen_port: 0
      positions:
Benjamin DUPUIS's avatar
Fix    
Benjamin DUPUIS committed
68
        filename: /var/lib/promtail/positions.yaml
Benjamin DUPUIS's avatar
initial  
Benjamin DUPUIS committed
69
70
71
72
73
74
75
76
77
78
79
      clients:
        - url: http://localhost:3100/api/prom/push
      scrape_configs:
        - job_name: journal
          journal:
            path: /run/log/journal
            labels:
              job: systemd-journal
          relabel_configs:
            - source_labels: ['__journal__systemd_unit']
              target_label: 'unit'
Benjamin DUPUIS's avatar
Benjamin DUPUIS committed
80
81
82
83
84
85
86
            - source_labels:
                - __journal__hostname
              target_label: hostname
            - source_labels:
                - __journal_syslog_identifier
              target_label: identifier

Benjamin DUPUIS's avatar
initial  
Benjamin DUPUIS committed
87
...