Skip to content

Configuring Log Insights for pganalyze runnning on kubernetes pod #554

@jahnavisana2812

Description

@jahnavisana2812

Hi,
We are currently using the scaled version of pganalyze.I've set up the pganalyze collector using a Docker file and created a deployment, but I'm encountering issues accessing the logs from the PostgreSQL cluster due to permission restrictions (700 permissions on /pgdata/pg16). To work around this, I'm running a cron job to copy the log folder every 30 minutes and set the log location accordingly. However, it seems that the collector isn't able to properly access this location, and I'm not seeing the log insights. There's an error in the pganalyze container logs. Please help me resolve this?

Error:

E [default] Error uploading to S3: Post
"https://api.pganalyze.com/v2/snapshots/upload": POST
https://api.pganalyze.com/v2/snapshots/upload giving up after 1
attempt(s): context deadline exceeded
E [default] Could not collect activity for server: failed to
upload/send activity snapshot: Post
"https://api.pganalyze.com/v2/snapshots/upload": POST
https://api.pganalyze.com/v2/snapshots/upload giving up after 1
attempt(s): context deadline exceeded

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions