Hi.
Recently, I was testing the server deployed by the operator. It seems, the new native exporter is throwing duplicated metrics, as you can see here when the prometheus server calls the metrics endpoint:
kubectl exec -n openshift-user-workload-monitoring prometheus-user-workload-0 -c prometheus – curl -sS -u “${USER}:${PASS}” ‘http://10.128.0.12:8091/metrics’ |grep cm_rest_request_enters_total
# TYPE cm_rest_request_enters_total counter
# HELP cm_rest_request_enters_total Number of REST requests to enter ns_server
cm_rest_request_enters_total{} 64964
# TYPE cm_rest_request_enters_total counter
# HELP cm_rest_request_enters_total Number of REST requests to enter ns_server
cm_rest_request_enters_total{} 64964
Here is the server definition:
servers:
- name: data
size: 1
services:
- data
- index
- query
volumeMounts:
logs: couchbase
resources:
requests:
cpu: '2'
memory: 4Gi
limits:
cpu: '4'
memory: 8Gi
- name: query
size: 1
services:
- index
- query
volumeMounts:
logs: couchbase
resources:
requests:
cpu: '2'
memory: 4Gi
limits:
cpu: '4'
memory: 8Gi
- name: analytics
size: 1
services:
- analytics
- eventing
volumeMounts:
logs: couchbase
resources:
requests:
cpu: '1'
memory: 2Gi
limits:
cpu: '2'
memory: 4Gi
It is duplicated in all of them.
Summary
Duplicated prometheus metrics in Couchbase Server 8.0.0