Skip to content

Commit

Permalink
Merge pull request #97 from vfarcic/flagger-update
Browse files Browse the repository at this point in the history
Updated Flagger
  • Loading branch information
vfarcic authored Mar 19, 2020
2 parents 5987226 + ac2c378 commit e8c3a37
Show file tree
Hide file tree
Showing 46 changed files with 690 additions and 69 deletions.
31 changes: 29 additions & 2 deletions packs/C++/charts/templates/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,39 @@ spec:
- name: request-success-rate
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }}
- name: request-duration
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
- name: latency
templateRef:
name: latency
thresholdRange:
max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }}

---

apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: latency
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
histogram_quantile(
0.99,
sum(
rate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}",
destination_workload=~"{{ "{{" }} target {{ "}}" }}"
}[{{ "{{" }} interval {{ "}}" }}]
)
) by (le)
)
---

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
Expand Down
2 changes: 1 addition & 1 deletion packs/C++/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hpa:
memoryTargetAverageUtilization: 80

# Canary deployments
# If enabled, Istio and Flagger need to be installed in the cluster
# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster
canary:
enabled: false
progressDeadlineSeconds: 60
Expand Down
31 changes: 29 additions & 2 deletions packs/D/charts/templates/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,39 @@ spec:
- name: request-success-rate
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }}
- name: request-duration
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
- name: latency
templateRef:
name: latency
thresholdRange:
max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }}

---

apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: latency
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
histogram_quantile(
0.99,
sum(
rate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}",
destination_workload=~"{{ "{{" }} target {{ "}}" }}"
}[{{ "{{" }} interval {{ "}}" }}]
)
) by (le)
)
---

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
Expand Down
2 changes: 1 addition & 1 deletion packs/D/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hpa:
memoryTargetAverageUtilization: 80

# Canary deployments
# If enabled, Istio and Flagger need to be installed in the cluster
# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster
canary:
enabled: false
progressDeadlineSeconds: 60
Expand Down
31 changes: 29 additions & 2 deletions packs/appserver/charts/templates/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,39 @@ spec:
- name: request-success-rate
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }}
- name: request-duration
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
- name: latency
templateRef:
name: latency
thresholdRange:
max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }}

---

apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: latency
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
histogram_quantile(
0.99,
sum(
rate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}",
destination_workload=~"{{ "{{" }} target {{ "}}" }}"
}[{{ "{{" }} interval {{ "}}" }}]
)
) by (le)
)
---

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
Expand Down
2 changes: 1 addition & 1 deletion packs/appserver/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hpa:
memoryTargetAverageUtilization: 80

# Canary deployments
# If enabled, Istio and Flagger need to be installed in the cluster
# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster
canary:
enabled: false
progressDeadlineSeconds: 60
Expand Down
31 changes: 29 additions & 2 deletions packs/csharp/charts/templates/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,39 @@ spec:
- name: request-success-rate
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }}
- name: request-duration
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
- name: latency
templateRef:
name: latency
thresholdRange:
max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }}

---

apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: latency
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
histogram_quantile(
0.99,
sum(
rate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}",
destination_workload=~"{{ "{{" }} target {{ "}}" }}"
}[{{ "{{" }} interval {{ "}}" }}]
)
) by (le)
)
---

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
Expand Down
2 changes: 1 addition & 1 deletion packs/csharp/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hpa:
memoryTargetAverageUtilization: 80

# Canary deployments
# If enabled, Istio and Flagger need to be installed in the cluster
# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster
canary:
enabled: false
progressDeadlineSeconds: 60
Expand Down
31 changes: 29 additions & 2 deletions packs/cwp/charts/templates/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,39 @@ spec:
- name: request-success-rate
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }}
- name: request-duration
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
- name: latency
templateRef:
name: latency
thresholdRange:
max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }}

---

apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: latency
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
histogram_quantile(
0.99,
sum(
rate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}",
destination_workload=~"{{ "{{" }} target {{ "}}" }}"
}[{{ "{{" }} interval {{ "}}" }}]
)
) by (le)
)
---

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
Expand Down
2 changes: 1 addition & 1 deletion packs/cwp/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hpa:
memoryTargetAverageUtilization: 80

# Canary deployments
# If enabled, Istio and Flagger need to be installed in the cluster
# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster
canary:
enabled: false
progressDeadlineSeconds: 60
Expand Down
31 changes: 29 additions & 2 deletions packs/dropwizard/charts/templates/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,39 @@ spec:
- name: request-success-rate
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }}
- name: request-duration
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
- name: latency
templateRef:
name: latency
thresholdRange:
max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }}

---

apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: latency
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
histogram_quantile(
0.99,
sum(
rate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}",
destination_workload=~"{{ "{{" }} target {{ "}}" }}"
}[{{ "{{" }} interval {{ "}}" }}]
)
) by (le)
)
---

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
Expand Down
2 changes: 1 addition & 1 deletion packs/dropwizard/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hpa:
memoryTargetAverageUtilization: 80

# Canary deployments
# If enabled, Istio and Flagger need to be installed in the cluster
# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster
canary:
enabled: false
progressDeadlineSeconds: 60
Expand Down
31 changes: 29 additions & 2 deletions packs/go-mongodb/charts/templates/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,39 @@ spec:
- name: request-success-rate
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }}
- name: request-duration
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
- name: latency
templateRef:
name: latency
thresholdRange:
max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }}

---

apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: latency
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
histogram_quantile(
0.99,
sum(
rate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}",
destination_workload=~"{{ "{{" }} target {{ "}}" }}"
}[{{ "{{" }} interval {{ "}}" }}]
)
) by (le)
)
---

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
Expand Down
2 changes: 1 addition & 1 deletion packs/go-mongodb/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hpa:
memoryTargetAverageUtilization: 80

# Canary deployments
# If enabled, Istio and Flagger need to be installed in the cluster
# If enabled, Istio v1.5+ and Flagger need to be installed in the cluster
canary:
enabled: false
progressDeadlineSeconds: 60
Expand Down
31 changes: 29 additions & 2 deletions packs/go/charts/templates/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,39 @@ spec:
- name: request-success-rate
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestSuccessRate.interval }}
- name: request-duration
threshold: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
- name: latency
templateRef:
name: latency
thresholdRange:
max: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.threshold }}
interval: {{ .Values.canary.canaryAnalysis.metrics.requestDuration.interval }}

---

apiVersion: flagger.app/v1beta1
kind: MetricTemplate
metadata:
name: latency
spec:
provider:
type: prometheus
address: http://prometheus.istio-system:9090
query: |
histogram_quantile(
0.99,
sum(
rate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload_namespace="{{ "{{" }} namespace {{ "}}" }}",
destination_workload=~"{{ "{{" }} target {{ "}}" }}"
}[{{ "{{" }} interval {{ "}}" }}]
)
) by (le)
)
---

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
Expand Down
Loading

0 comments on commit e8c3a37

Please sign in to comment.