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

--dry-run Promtail. #1652

Merged
merged 10 commits into from
Feb 13, 2020
Prev Previous commit
Next Next commit
Fixes journaltarget refactor.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena committed Feb 11, 2020
commit 7c9b0ad7a1f1d435bda566a2aaac564471ab271c
6 changes: 3 additions & 3 deletions pkg/promtail/targets/journaltarget.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var defaultJournalEntryFunc = func(c sdjournal.JournalReaderConfig, cursor strin
type JournalTarget struct {
logger log.Logger
handler api.EntryHandler
positions *positions.Positions
positions positions.Positions
positionPath string
relabelConfig []*relabel.Config
config *scrape.JournalTargetConfig
Expand All @@ -92,7 +92,7 @@ type JournalTarget struct {
func NewJournalTarget(
logger log.Logger,
handler api.EntryHandler,
positions *positions.Positions,
positions positions.Positions,
jobName string,
relabelConfig []*relabel.Config,
targetConfig *scrape.JournalTargetConfig,
Expand All @@ -113,7 +113,7 @@ func NewJournalTarget(
func journalTargetWithReader(
logger log.Logger,
handler api.EntryHandler,
positions *positions.Positions,
positions positions.Positions,
jobName string,
relabelConfig []*relabel.Config,
targetConfig *scrape.JournalTargetConfig,
Expand Down