Skip to content

PostgresqlNotEnoughConnections fires as a false positive on small deployments #1402

@dstathis

Description

@dstathis

The alert fires constantly on a lightly-loaded deployment even though PostgreSQL is healthy and the application is working correctly.

Steps to reproduce

  1. Deploy postgresql-k8s and relate to cos (or cos-lite)
  2. Relate postgresql-k8s to a consumer charm and don't use it very much (I am using joplin-server)
  3. Check the firing alerts

Expected behaviour

No alerts when the deployment is healthy

Actual behaviour

Continuous alerts

Versions

Operating system: Nixos 25.11

Juju CLI: 3.6.20-genericlinux-amd64

Juju agent: 3.6.14

Charm revision: 774

microk8s: -
k3s: v1.34.5+k3s1

Log output

Juju debug log:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions