Skip to content
Snippets Groups Projects
  1. Sep 06, 2019
  2. Sep 04, 2019
  3. Sep 03, 2019
  4. Aug 21, 2019
    • Robert Fratto's avatar
      promtail: add "max_age" field to configure cutoff for journal reading (#921) · 4c418430
      Robert Fratto authored
      The journal scrape config in promtail has been updated to support
      a "max_age" field. max_age determines the oldest journal entry
      promtail will read when starting the journal reader. When
      unspecified, max_age defaults to 7h.
      
      Even if a position in the journal is saved in the promtail
      positions file, that position may be ignored if the entry corresponding
      to that position is older than the max_age cutoff time.
      
      Example promtail config for getting up to the last 12h of journal
      entries:
      
        server:
          http_listen_port: 9080
          grpc_listen_port: 0
      
        positions:
          filename: /tmp/positions.yaml
      
        clients:
          - url: http://localhost:3100/api/prom/push
      
        scrape_configs:
        - job_name: journal
          journal:
            max_age: 12h
            path: /var/log/journal
            labels:
              job: systemd-journal
          relabel_configs:
            - source_labels: ['__journal__systemd_unit']
              target_label: 'unit'
      4c418430
    • Marco Pracucci's avatar
      Documented promtail known failure modes · 75a3e61a
      Marco Pracucci authored
      75a3e61a
  5. Aug 20, 2019
  6. Aug 14, 2019
  7. Aug 13, 2019
    • Malte's avatar
      Fix old values in operations.md · ec414529
      Malte authored
      `from: 0` throws
      ```
      level=error ts=2019-08-07T12:02:15.385981107Z caller=main.go:48 msg="error loading config" filename=/etc/loki/local-config.yaml err="parsing time \"0\" as \"2006-01-02\": cannot parse \"0\" as \"2006\""
      ```
      
      `store: dynamo` throws:
      ```
      level=error ts=2019-08-07T11:59:01.688427565Z caller=main.go:71 msg="error initialising loki" err="error initialising module: table-manager: Unrecognized storage client dynamo, choose one of: aws, cassandra, inmemory, gcp, bigtable, bigtable-hashed"
      ```
      ec414529
  8. Aug 09, 2019
  9. Aug 06, 2019
  10. Jul 31, 2019
  11. Jul 30, 2019
  12. Jul 23, 2019
  13. Jul 17, 2019
  14. Jul 16, 2019
  15. Jul 15, 2019
    • Robert Fratto's avatar
      promtail: Add systemd journal support (#730) · 9eb3098d
      Robert Fratto authored
      Support for reading systemd journal entries has been added. 
      promtail will look for a job in scrape_configs with a journal key 
      to activate the journal target. 
      
      If GOOS=linux and CGO_ENABLED=1, promtail will now require 
      libsystemd headers to be available for building. If GOOS is not 
      linux or CGO_ENABLED is not 1, journal support will be unavailable
      and a log message will be printed warning the user that their config 
      file has journal tailing configured without it being built into promtail. 
      
      See docs/promtail-examples.md for a concrete example of 
      using journal support. 
      
      Other structural changes made: 
      
        1. Ability for checking if scrape.Config.ServiceDiscoveryConfig is 
           non-zero has been added. 
      
           This was chosen over making ServiceDiscoveryConfig a pointer
           as yaml.v2 cannot parse an inline struct into a pointer value. 
      
        2. Updated pipeline logger component name to journal_pipeline and
           file_pipeline for JournalTargetManager and FileTargetManager
           respectively.
      
        3. The positions file will now store positions as strings instead of 
           integers. Existing positions will be read in properly but written out 
           as strings the next time the positions file is saved. This is done to 
           be able to store the journal cursor, which is a string. The positions 
           API has been updated to support reading in the old integer values 
           and the new string values. 
      9eb3098d
    • Marco Pracucci's avatar
    • Marco Pracucci's avatar
      812aecc7
    • Marco Pracucci's avatar
  16. Jul 11, 2019
  17. Jul 10, 2019
  18. Jul 08, 2019
  19. Jul 05, 2019
  20. Jul 01, 2019
  21. Jun 12, 2019
  22. Jun 10, 2019
  23. Jun 03, 2019
  24. May 30, 2019
  25. May 29, 2019
Loading