Skip to content

Commit 131935e

Browse files
docs: adding wavefront template to example app (idan-codefresh#6)
1 parent 71470f6 commit 131935e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: AnalysisTemplate
3+
metadata:
4+
name: success-rate-wavefront
5+
spec:
6+
args:
7+
- name: ingress
8+
metrics:
9+
- name: success-rate
10+
interval: 10s
11+
successCondition: result > 0.90
12+
provider:
13+
wavefront:
14+
address: example.wavefront.com
15+
query: |
16+
sum(rate(
17+
5m, ts("nginx.ingress.controller.requests.counter", ingress="{{args.ingress}}" and status="200"
18+
))) /
19+
sum(rate(
20+
5m, ts("nginx.ingress.controller.requests.counter", ingress="{{args.ingress}}"
21+
)))

0 commit comments

Comments
 (0)