Skip to content

feat(analytics): configure vector for docker logs instead of syslog driver - #2061

Merged
sweatybridge merged 8 commits into
developfrom
docker-driver
Jun 27, 2024
Merged

sweatybridge merged 8 commits into
developfrom
docker-driver

Conversation

@sweatybridge

@sweatybridge sweatybridge commented Mar 18, 2024 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

feature

What is the new behavior?

Uses native docker logs driver instead of syslog.

Additional context

Add any other context or screenshots.

@sweatybridge
sweatybridge requested a review from a team as a code owner March 18, 2024 06:06
@coveralls

coveralls commented Mar 19, 2024 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 9692802400

Details

  • 16 of 37 (43.24%) changed or added relevant lines in 6 files are covered.
  • 7 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.07%) to 60.274%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/functions/download/download.go 0 2 0.0%
internal/utils/config.go 0 3 0.0%
internal/start/start.go 10 26 38.46%
Files with Coverage Reduction New Missed Lines %
internal/storage/rm/rm.go 2 89.53%
internal/gen/keys/keys.go 5 11.76%
Totals Coverage Status
Change from base Build 9691786737: -0.07%
Covered Lines: 6899
Relevant Lines: 11446

💛 - Coveralls

@sweatybridge sweatybridge changed the title feat: replace vector syslog driver with docker logs WIP: replace vector syslog driver with docker logs Mar 20, 2024
@sweatybridge sweatybridge mentioned this pull request Jun 8, 2024
@endyjasmi

Copy link
Copy Markdown

anything we can do to get this merged?

Comment thread internal/start/start.go Outdated
Comment on lines +176 to +177
// TODO: mount domain socket from docker rootless mode
binds = append(binds, "/var/run/docker.sock:/var/run/docker.sock:ro")

@sweatybridge sweatybridge Jun 27, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently this relies on mounting root docker socket into vector container. Ideally we want to find a way to mount the user socket instead so it doesn't require root access.

For now, I will emit a warning from cli.

@sweatybridge sweatybridge changed the title WIP: replace vector syslog driver with docker logs feat(analytics): configure vector to use to docker logs instead of syslog driver Jun 27, 2024
@sweatybridge sweatybridge changed the title feat(analytics): configure vector to use to docker logs instead of syslog driver feat(analytics): configure vector for docker logs instead of syslog driver Jun 27, 2024
@sweatybridge
sweatybridge merged commit b8de60a into develop Jun 27, 2024
@sweatybridge
sweatybridge deleted the docker-driver branch June 27, 2024 07:59
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