Skip to content

duplicate metrics in destination controller #12710

Description

@siggy

What is the issue?

The destination controller logs:

failed to register Prometheus gauge Desc{fqName: \"job_cache_size\", help: \"Number of items in the client-go job cache\", constLabels: {cluster=\"local\"}, variableLabels: {}}: duplicate metrics collector registration attempted

How can it be reproduced?

with edge-24.6.1:

linkerd install --crds | kubectl apply -f -
linkerd install | kubectl apply -f -
kubectl -n linkerd logs deploy/linkerd-destination -c destination

Logs, error output, etc

$ kubectl -n linkerd logs deploy/linkerd-destination -c destination
time="2024-06-12T15:28:18Z" level=info msg="running version edge-24.6.1"
time="2024-06-12T15:28:18Z" level=info msg="starting admin server on :9996"
time="2024-06-12T15:28:18Z" level=info msg="Using default opaque ports: map[25:{} 587:{} 3306:{} 4444:{} 5432:{} 6379:{} 9300:{} 11211:{}]"
time="2024-06-12T15:28:18Z" level=warning msg="failed to register Prometheus gauge Desc{fqName: \"job_cache_size\", help: \"Number of items in the client-go job cache\", constLabels: {cluster=\"local\"}, variableLabels: {}}: duplicate metrics collector registration attempted"
time="2024-06-12T15:28:18Z" level=info msg="waiting for caches to sync"

output of linkerd check -o short

$ linkerd check -o short
Status check results are √

Environment

$ kind version
kind v0.22.0 go1.20.13 linux/amd64

Possible solution

No response

Additional context

No response

Would you like to work on fixing this bug?

maybe

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions