Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file input plugin: define watching_dir from include patterns #567

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

DmitryRomanov
Copy link
Collaborator

try to define watching_dir from paths.include

see also #566

pipelines:
  welcome:
    input:
      type: file
      persistence_mode: async
      # watching_dir: /var/lib/docker/containers 
      # filename_pattern: "*-json.log"
      paths:
        include:
          - '/var/lib/docker/containers/30b28763e40a7649ef73c8afce0b0f4e62546f2a07a174d97e56bd02854facbd/*-json.log'
          - '/var/lib/docker/containers/65d343a9cc0a9fe6e466a370fcaf8ad6458eb912d19f8e8832e941e2ab7cafa0/*-json.log'
          - '/var/lib/docker/containers/**/*-json.log'
          - '/var/log/clickhouse-server/*.log'
        exclude:
          - '/var/lib/docker/overlay2/**'
          - '/var/lib/docker/volumes/**'
      offsets_file: ./offsets.yaml
      offsets_op: reset
    output:
      type: stdout

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 71.96262% with 30 lines in your changes missing coverage. Please review.

Project coverage is 71.02%. Comparing base (67ecc39) to head (d01873c).
Report is 17 commits behind head on master.

Current head d01873c differs from pull request most recent head 9675047

Please upload reports for the commit 9675047 to get more accurate results.

Files Patch % Lines
plugin/input/file/watcher.go 75.29% 14 Missing and 7 partials ⚠️
plugin/input/file/info.go 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #567      +/-   ##
==========================================
+ Coverage   70.83%   71.02%   +0.18%     
==========================================
  Files         124      124              
  Lines       12572    12644      +72     
==========================================
+ Hits         8906     8981      +75     
+ Misses       3150     3141       -9     
- Partials      516      522       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@goshansmails goshansmails self-requested a review April 19, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants