You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The custom MetricTemplates can have an endpoint defined, but the default Istio metrics lookups seem to only attempt the default Prometheus address, leading to these errors:
{"level":"error","ts":"2024-06-27T22:45:48.929Z","caller":"controller/events.go:39","msg":"Prometheus query failed: running query failed: request failed: Get \"http://prometheus:9090/api/v1/query?query=+sum%28+rate%28+istio_requests_total%7B+reporter%3D%22destination%22%2C+destination_workload_namespace%3D%22api%22%2C+destination_workload%3D~%22api%22%2C+response_code%21~%225.%2A%22+%7D%5B1m%5D+%29+%29+%2F+sum%28+rate%28+istio_requests_total%7B+reporter%3D%22destination%22%2C+destination_workload_namespace%3D%22api%22%2C+destination_workload%3D~%22api%22+%7D%5B1m%5D+%29+%29+%2A+100\": dial tcp: lookup prometheus on 10.0.0.10:53: no such host","canary":"api-canary.api","stacktrace":"github.com/fluxcd/flagger/pkg/controller.(*Controller).recordEventErrorf\n\t/workspace/pkg/controller/events.go:39\ngithub.com/fluxcd/flagger/pkg/controller.(*Controller).runBuiltinMetricChecks\n\t/workspace/pkg/controller/scheduler_metrics.go:145\ngithub.com/fluxcd/flagger/pkg/controller.(*Controller).runAnalysis\n\t/workspace/pkg/controller/scheduler.go:748\ngithub.com/fluxcd/flagger/pkg/controller.(*Controller).advanceCanary\n\t/workspace/pkg/controller/scheduler.go:442\ngithub.com/fluxcd/flagger/pkg/controller.CanaryJob.Start.func1\n\t/workspace/pkg/controller/job.go:39"}
Is it possible to set a custom endpoint with the builtin Istio metrics, or will I have to define all of these myself? It doesn't seem that I can add the provider block to Canary spec.
To Reproduce
Deploy an Istio backed Canary with an external Prometheus endpoint.
Expected behavior
An endpoint on the CRD to define a custom Prometheus endpoint for Istio.
Additional context
Flagger version: 1.37.0
Kubernetes version: 1.27.13
Service Mesh provider: Istio v1.17.1
Ingress provider: Istio v1.17.1
The text was updated successfully, but these errors were encountered:
Describe the bug
When defining a Canary with Istio, Flagger appears to attempt to use a default Prometheus address.
The custom MetricTemplates can have an endpoint defined, but the default Istio metrics lookups seem to only attempt the default Prometheus address, leading to these errors:
Is it possible to set a custom endpoint with the builtin Istio metrics, or will I have to define all of these myself? It doesn't seem that I can add the
provider
block to Canary spec.To Reproduce
Deploy an Istio backed Canary with an external Prometheus endpoint.
Expected behavior
An endpoint on the CRD to define a custom Prometheus endpoint for Istio.
Additional context
The text was updated successfully, but these errors were encountered: