amazon-archives / k8s-cloudwatch-adapter

An implementation of Kubernetes Custom Metrics API for Amazon CloudWatch
Apache License 2.0
157 stars 98 forks source link

err: MissingEndpoint: 'Endpoint' configuration is required for this service #81

Open kimabd opened 3 years ago

kimabd commented 3 years ago

Hello, I'm running K8S v1.15.12 and Adapter v0.10.0. I have next error: selectors: I0413 13:51:41.576749 1 client.go:52] using AWS Region: request blocked by whitelist-route-regexp "'.'": /latest/meta-data/placement/availability-zone/ E0413 13:51:41.576871 1 client.go:79] err: MissingEndpoint: 'Endpoint' configuration is required for this service E0413 13:51:41.576889 1 provider_external.go:32] bad request: MissingEndpoint: 'Endpoint' configuration is required for this service I0413 13:51:41.813367 1 provider_external.go:18] Received request for namespace: default, metric name: sqs-requests-length, metric selectors: I0413 13:51:41.891507 1 metric_cache.go:44] metric not found ExternalMetric/default/sqs-requests-length I0413 13:51:56.710819 1 provider_external.go:18] Received request for namespace: sandbox, metric name: sqs-requests-length, metric selectors: I0413 13:51:56.711317 1 client.go:52] using AWS Region: request blocked by whitelist-route-regexp "'.'": /latest/meta-data/placement/availability-zone/ E0413 13:51:56.711461 1 client.go:79] err: MissingEndpoint: 'Endpoint' configuration is required for this service E0413 13:51:56.711478 1 provider_external.go:32] bad request: MissingEndpoint: 'Endpoint' configuration is required for this service

Main points: 1) I can't understand why is it blocking .* regex pattern of kiam whitelist-route-regexp 2) is the MissingEndpoint endpoing related to path of kiam 3) when I run Adapter v0.8.0. everything works(AWS creds injected via env. variables, assume role is also did'nt worked for me)

kimabd commented 3 years ago

some updates so far 1) for test purpose use kiam --whitelist-route-regexp=.* (without quotes) 2) Don't use hiphens in queries id of ExternalMetric - https://github.com/awslabs/k8s-cloudwatch-adapter/issues/2