Skip to content

New observability metrics are not available #682

@maxim-mityutko

Description

@maxim-mityutko

According to the docs, I'm expecting to see 3 new backup metrics, instead of the old ones. However despite the fact that backup through plugin is configured and working, the metrics are not popping up. And the old metrics are no longer working of course. Now I'm a bit lost, is there a problem with my config?

Plugin is installed via Helm:
https://github.com/maxim-mityutko/home-infra/blob/efc76d0398d9f46d65d8e2a72143bd5d4b0e742c/kubernetes/cluster/default/cloudnative-pg/kustomization.yaml#L40-L56

Plugin Configuration in CNPG Cluster

  plugins:
    - name: barman-cloud.cloudnative-pg.io
      enabled: true
      isWALArchiver: false
      parameters:
        serverName: cnpg-default
        barmanObjectName: cnpg-default-barman

Objectstore

apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
  name: cnpg-default-barman
spec:
  retentionPolicy: 7d
  instanceSidecarConfiguration:
    retentionPolicyIntervalSeconds: 21600 # 6 hours
    resources:
      requests:
        memory: 100Mi
        cpu: 100m
      limits:
        memory: 500Mi
        cpu: 2
  configuration:
    destinationPath: s3://cnpg-backup/
    endpointURL: <url>
    s3Credentials:
      accessKeyId:
        name: cnpg-default-secret
        key: username
      secretAccessKey:
        name: cnpg-default-secret
        key: password
    data:
      compression: bzip2
    wal:
      compression: bzip2

Backup

apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
  name: cnpg-default-backup
spec:
  immediate: true
  schedule: "0 0 2 * * *"
  backupOwnerReference: self
  cluster:
    name: cnpg-default
  method: plugin
  pluginConfiguration:
    name: barman-cloud.cloudnative-pg.io

Environment

  • plugin-barman-cloud:v0.9.0
  • postgresql:17.4
  • cloudnative-pg:1.28.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions