Skip to content

feat(database_observability.postgres): Add logs collector#5445

Merged
cristiangreco merged 26 commits intomainfrom
gaantunes/postgres-error-logs-clean-v2
Feb 16, 2026
Merged

feat(database_observability.postgres): Add logs collector#5445
cristiangreco merged 26 commits intomainfrom
gaantunes/postgres-error-logs-clean-v2

Conversation

@gaantunes
Copy link
Contributor

@gaantunes gaantunes commented Feb 4, 2026

Adds a Postgres logs collector, at this first iteration focused on generating error count metrics.

This component supports reading stderr postgres logs configured with the log_line_prefix format %m:%r:%u@%d:[%p]:%l:%e:%s:%v:%x:%c:%q%a, supported by AWS RDS.

@gaantunes gaantunes requested a review from a team as a code owner February 4, 2026 20:53
@gaantunes gaantunes changed the title feat(postgres): add error_logs collector feat: add error_logs collector to database_observability.postgres Feb 4, 2026
@gaantunes gaantunes changed the title feat: add error_logs collector to database_observability.postgres feat: Add error_logs collector to database_observability.postgres Feb 4, 2026
@gaantunes gaantunes force-pushed the gaantunes/postgres-error-logs-clean-v2 branch from 04d18f4 to 2769c5b Compare February 4, 2026 21:18
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

💻 Deploy preview available (feat: Add error_logs collector to database_observability.postgres):

@gaantunes gaantunes force-pushed the gaantunes/postgres-error-logs-clean-v2 branch 3 times, most recently from d941fb5 to c761823 Compare February 4, 2026 21:38
@gaantunes gaantunes changed the title feat: Add error_logs collector to database_observability.postgres feat: Add logs collector to database_observability.postgres Feb 9, 2026
@gaantunes gaantunes force-pushed the gaantunes/postgres-error-logs-clean-v2 branch from 83da614 to 5edf383 Compare February 9, 2026 21:53
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

💻 Deploy preview available (feat: Add logs collector to database_observability.postgres):

@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Feb 10, 2026
Copy link
Contributor

@cristiangreco cristiangreco left a comment

Choose a reason for hiding this comment

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

Left some comments.

gaantunes and others added 12 commits February 16, 2026 15:19
Add error_logs collector that starts immediately without DB connection.
Exports error_logs_receiver for loki.source.file integration.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
…ase_observability.postgres.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
@cristiangreco cristiangreco force-pushed the gaantunes/postgres-error-logs-clean-v2 branch from 605a2d3 to 1d3adc7 Compare February 16, 2026 14:19
@cristiangreco cristiangreco changed the title feat: Add logs collector to database_observability.postgres feat(database_observability.postgres): Add logs collector Feb 16, 2026
@cristiangreco cristiangreco merged commit 1392953 into main Feb 16, 2026
56 of 58 checks passed
@cristiangreco cristiangreco deleted the gaantunes/postgres-error-logs-clean-v2 branch February 16, 2026 15:08
@grafana-alloybot grafana-alloybot bot mentioned this pull request Feb 16, 2026
@github-actions
Copy link
Contributor

💻 Deploy preview deleted (feat(database_observability.postgres): Add logs collector).

jharvey10 pushed a commit that referenced this pull request Feb 26, 2026
Adds a Postgres logs collector, at this first iteration focused on
generating error count metrics.

This component supports reading stderr postgres logs configured with the
log_line_prefix format `%m:%r:%u@%d:[%p]:%l:%e:%s:%v:%x:%c:%q%a`,
supported by AWS RDS.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Co-authored-by: Cristian Greco <cristian@regolo.cc>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age type/docs Docs Squad label across all Grafana Labs repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants