Comments (7)
Thanks for filing this issue. Can you provide more details? At which point did you get unexpected result?
The endpoint you included is not implemented, the reason being, it would have to include every single metric from Stackdriver. See: https://github.com/GoogleCloudPlatform/k8s-stackdriver/blob/master/custom-metrics-stackdriver-adapter/pkg/adapter/provider/provider.go#L246 It needs some investigation whether it can be safely implemented and for which cases. Have you tried to call http://localhost:8080/apis/external.metrics.k8s.io/v1beta1/namespaces/your-namespace/your-metric-name instead?
Also, can you elaborate on what's your use case for external metrics? I you want to use it for pod autoscaling, please keep in mind that it is not implemented in HPA with 1.9 version.
from k8s-stackdriver.
Thank for your prompt reply !
I want to use the request count of a load balancer (L7) to autoscale.
In 1.10 is it implemented ?
from k8s-stackdriver.
Yes, it should work with 1.10 according to my knowledge.
Actually "/" character is not allowed in a metric name included in a path (there are some security reasons for this, generally this rule holds across kubernetes APIs). In Custom Metrics - Stackdriver Adapter "|" character is used instead, so your url would be http://localhost:8080/apis/external.metrics.k8s.io/v1beta1/namespaces/??/loadbalancing.googleapis.com|https|backend_latencies. Looks like it's missing in the documentation, I'll add it to avoid further confusion.
from k8s-stackdriver.
Great !
I can get metrics :) ! But can I filter on a label ?
from k8s-stackdriver.
Yes, you can filter on labels using labelSelector (similarily to custom metrics api). The label names that can be used are specific to Stackdriver (e.g. resource.labels.resoponse_code). This will be covered in documentation for HPA, which is not published yet.
from k8s-stackdriver.
Thanks a lot !
from k8s-stackdriver.
Hello ! When i'm trying to fetch backend_latencies
I have this following error . Can you help me ?
googleapi: Error 400: Field aggregation.perSeriesAligner had an invalid value of \"ALIGN_RATE\": The aligner cannot be applied to metrics with kind DELTA and value type DISTRIBUTION., badRequest
from k8s-stackdriver.
Related Issues (20)
- Need a non-root user for the fluentd image (k8s.gcr.io/fluentd-gcp:1.30)
- Permission to create Metrics of any MetricType
- Issue with metrics.k8s.io/v1beta1 HOT 2
- error calling MarshalJSON / unsupported value: NaN HOT 7
- Custom Metrics Adapter Applicability to GKE Autopilot HOT 3
- custom-metrics-sd-adapter: 403s when fetching metrics from another project
- Autoscaler throws FailedGetExternalMetric after upgrade to 1.22 HOT 1
- HPA doesn't scale down to minimum size when no data is available from external metrics API server
- prometheus-to-sd | 403 Permission error, with correct Service Account permissions. HOT 2
- Custom stack driver pod doesnt seem to have liveness/readiness probe.
- Running custom-metrics-stackdriver-adapter as non-root user HOT 1
- Stackdriver metrics are not supported by HorizontalPodAutoscaler HOT 2
- ClusterRole in stackdriver adapter has namespace defined
- custom-metrics-stackdriver-adapter not working - auth problems? HOT 13
- Security Policy violation Binary Artifacts HOT 5
- Allow custom metrics from a different pod HOT 3
- Custom metrics adapter spewing errors "apiserver was unable to write a fallback JSON response: http2: stream closed" HOT 11
- custom-metrics-stackdriver-adapter - couldn't get resource list for external.metrics.k8s.io/v1beta1: Got empty response for: external.metrics.k8s.io/v1beta1 HOT 3
- istio.io/service/server/response_latencies metric that HPA collected is different to Cloud monitoring HOT 1
- Filtering metrics by labelSelector in external.metrics.k8s.io api doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-stackdriver.