/metrics endpoint reports some metrics twice

Description

Steps to Repro
1. Create a 3 node cluster (.215 - kv,index ; 217-kv,index; 219-index,query)
2. Create 3 buckets - bucket1, travel-sample, beer-sample
3. Ping the /metrics endpoint at 8091 port of .215 node
Some metrics are reported twice

eg: The following exposer_scrapes_total is reported twice:

There are more metrics that are reported twice.

sort metrics_output_copy.txt | uniq -c | sort

Description for release notes

Issue

Resolution

The response returned by the /metrics endpoint would fail validation via promtool check due to duplicate entries.

Removed the duplicated exposer_* entries.

Components

Affects versions

Fix versions

Labels

Environment

Couchbase EE 7.0.0-4253

Link to Log File, atop/blg, CBCollectInfo, Core dump

http://supportal.couchbase.com/snapshot/fd629a3f79a380e9a7ccfdef876f301b::0 s3://cb-customers-secure/metrics_repeated/2021-01-20/collectinfo-2021-01-20t110924-ns_1@172.23.105.215.zip s3://cb-customers-secure/metrics_repeated/2021-01-20/collectinfo-2021-01-20t110924-ns_1@172.23.105.217.zip s3://cb-customers-secure/metrics_repeated/2021-01-20/collectinfo-2021-01-20t110924-ns_1@172.23.105.219.zip

Release Notes Description

None

Attachments

1

Activity

Show:

Beth Favini June 3, 2024 at 5:46 PM

We are preparing the 7.2.5 release notes. If this fix is customer-facing, please add the releasenote label to the issue so it will be picked up by our filter.

CB robot January 30, 2024 at 2:07 PM

Build couchbase-server-8.0.0-1543 contains kv_engine commit c8d9921 with commit message:
: [BP] Only collect exposer_ metrics for the low cardinality

CB robot January 30, 2024 at 3:46 AM

Build capella-analytics-1.0.0-1233 contains kv_engine commit c8d9921 with commit message:
: [BP] Only collect exposer_ metrics for the low cardinality

CB robot January 29, 2024 at 2:45 PM

Build couchbase-server-7.6.1-3063 contains kv_engine commit c8d9921 with commit message:
: [BP] Only collect exposer_ metrics for the low cardinality

CB robot January 29, 2024 at 9:39 AM

Build couchbase-server-7.6.0-2064 contains kv_engine commit c8d9921 with commit message:
: [BP] Only collect exposer_ metrics for the low cardinality

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Is this a Regression?

Unknown

Triage

Triaged

Operating System

Centos 64-bit

Issue Impact

external

Due date

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created January 20, 2021 at 11:29 AM
Updated March 21, 2025 at 2:52 AM
Resolved January 22, 2024 at 3:25 PM
Instabug