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 the ccp_nodemx_mem_limit does.
ACTUAL
- Metrics are in KiB:
$ kubectl get pod PODNAME -o jsonpath='{.spec.containers[*].resources.requests.memory}'
32Gi
Prometheus output: 32768
Overview
The
ccp_nodemx_mem_request metricexposed 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:
Steps to Reproduce
REPRO
Provide steps to get to the error condition:
Get metrics from Prometheus
Here the extraction from the
collectorsidecar config:EXPECTED
ccp_nodemx_mem_requestin bytes, as theccp_nodemx_mem_limitdoes.ACTUAL
Prometheus output: 32768