Skip to content

context canceled error when collecting metrics from thanos-querier #747

Open
@LeonD9

Description

@LeonD9

Expected Behavior

No errors in log of kube-metrics-adapter

Actual Behavior

I receive the following error after the collector runner is stopped for connecting to the thanos-querier:

time="2024-08-15T11:20:33Z" level=info msg="stopping collector runner..."
time="2024-08-15T11:20:33Z" level=error msg="Failed to collect metrics: Post \"http://thanos-querier.kube-system.svc.cluster.local:10902/api/v1/query\": context canceled" provider=hpa

Is this ERROR expected? it happens frequently but i didn't see any impact on HPA, what can i do to resolve it?

Steps to Reproduce the Problem

Upgrade from v0.1.8 to v0.2.3, i didn't see this kind of error messages in v0.1.8 but i started seeing them after i upgraded to v0.2.3
Run kube-metrics-adapter with --prometheus-server=http://thanos-querier.kube-system.svc.cluster.local:10902 arg

Specifications

Latest image version: ghcr.io/zalando-incubator/kube-metrics-adapter:v0.2.3
EKS: v1.24

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions