Skip to content

Conversation

@lozbrown
Copy link
Owner

Allow promtail to skip or stop tailing watching files/folders that contain a file with promtail_ignore in the title.

promtail works poorly with transient log files (like airflow dag logs) because it tried to watch an ever growing list of files folders which will likely never change again.

This allows you to stop promtail watching those files/folders on the fly

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

Allow promtail to skip or stop tailing watching files/folders that contain a file with promtail_ignore in the title. 

promtail works poorly with transient log files (like airflow dag logs) because it tried to watch an ever growing list of files folders which will likely never change again. 

This allows you to stop promtail watching those files/folders on the fly
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.

2 participants