flagger
flagger copied to clipboard
Halt advancement no values found for istio metric request-duration probably reviews-v1.istio is not receiving traffic","canary":"bookinfo.istio"
Describe the bug
A clear and concise description of what the bug is. Please provide the Canary definition and Flagger logs. Halt advancement no values found for istio metric request-duration probably reviews-v1.istio is not receiving traffic","canary":"bookinfo.istio"
To Reproduce
apply the config
release/canary/flagger/canary-reviews-metrictemplates-prometheus.yaml
kubectl apply -f canary-reviews-metrictemplates-prometheus.yaml -n istio-system
apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: not-found-percentage
namespace: istio-system
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
100 - sum(
rate(
istio_requests_total{
reporter="destination",
destination_workload_namespace="{{ namespace }}",
destination_workload="{{ target }}",
response_code!="404"
}[{{ interval }}]
)
)
/
sum(
rate(
istio_requests_total{
reporter="destination",
destination_workload_namespace="{{ namespace }}",
destination_workload="{{ target }}"
}[{{ interval }}]
)
) * 100
release/canary/flagger/canary-reviews-metrictemplates-prometheus-canary.yaml
kubectl apply -f canary-reviews-metrictemplates-prometheus-canary.yaml -n istio
apiVersion: flagger.app/v1beta1
kind: Canary
metadata:
name: bookinfo
spec:
revertOnDeletion: true
targetRef:
apiVersion: apps/v1
kind: Deployment
name: reviews-v1
service:
port: 9080
gateways:
- istio/bookinfo-gateway
hosts:
- "*"
analysis:
interval: 1m
threshold: 10
maxWeight: 50
stepWeight: 20
metrics:
- templateRef:
namespace: istio-system
name: not-found-percentage
name: not-found-percentage
thresholdRange:
max: 10
interval: 1m
kubectl -n istio set image deployment/reviews-v1 reviews=docker.io/istio/examples-bookinfo-reviews-v2:1.16.2
kubectl describe canary bookinfo -n istio
I have visit the url for many time,but still no metrics ,I searched in prometheus ,can find the mestrics
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
- Flagger version: 1.13
- Kubernetes version: 1.21
- Service Mesh provider: istio
- Ingress provider: