Skip to content

feat: support structured logging in Promtail#307

Merged
davidlougheed merged 4 commits into
refact/alloy-migratefrom
feat/structured-logging
Mar 14, 2025
Merged

feat: support structured logging in Promtail#307
davidlougheed merged 4 commits into
refact/alloy-migratefrom
feat/structured-logging

Conversation

@davidlougheed

Copy link
Copy Markdown
Member

WIP for v19

@davidlougheed davidlougheed changed the base branch from releases/v18 to releases/v19 February 5, 2025 18:18
@davidlougheed davidlougheed changed the title feat: support structured logging feat: support structured logging in Promtail Feb 5, 2025

@v-rocheleau v-rocheleau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested with reference service in structlog mode, works well!
Was able to parse logs from reference, and filter for access logs where http status >= 400 for instance. Will be useful for dashboard creation.

Comment thread lib/logs/promtail-config.yaml Outdated
@davidlougheed davidlougheed marked this pull request as ready for review March 4, 2025 14:35

@v-rocheleau v-rocheleau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We need to replace Promtail with Alloy, just made a PR for it.
I can use the updated Promtail config to re-generate the Alloy config with these changes.
Maybe merge this in refact/alloy-migrate instead?

@davidlougheed davidlougheed changed the base branch from releases/v19 to refact/alloy-migrate March 4, 2025 17:00
@davidlougheed davidlougheed force-pushed the feat/structured-logging branch from a50030d to 41f2e88 Compare March 12, 2025 18:39

@v-rocheleau v-rocheleau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@davidlougheed davidlougheed merged commit e58c530 into refact/alloy-migrate Mar 14, 2025
@davidlougheed davidlougheed deleted the feat/structured-logging branch March 14, 2025 21:31
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