-
Notifications
You must be signed in to change notification settings - Fork 622
Open
Labels
Description
Overview
The ccp_nodemx_mem_request metric
exposed by the OTEL-based sidecar reports values in kilobytes, but its description incorrectly states that it reports values in bytes.
Environment
Please provide the following details:
- Platform: Rancher
- Platform Version: v1.29.13+rke2r1
- PGO Image Tag: ubi8-16.8-0
- Postgres Version 16
Steps to Reproduce
REPRO
Provide steps to get to the error condition:
- Activate OTEL metrics and resources in Postgres instance:
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: myinstance
spec:
postgresVersion: 16
instrumentation: {}
image: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.8-0"
instances:
- name: instance1
replicas: 3
resources:
requests:
cpu: "4"
memory: "32Gi"
-
Get metrics from Prometheus
-
Here the extraction from the
collector
sidecar config:
- description: Memory request value in bytes
metric_name: ccp_nodemx_mem_request
static_attributes:
server: localhost:5432
value_column: request
EXPECTED
- Metrics provided by
ccp_nodemx_mem_request
in bytes, as theccp_nodemx_mem_limit
does.
ACTUAL
- Metrics are in KiB:
$ kubectl get pod PODNAME -o jsonpath='{.spec.containers[*].resources.requests.memory}'
32Gi
Prometheus output: 32768