-
Notifications
You must be signed in to change notification settings - Fork 0
/
values-test.yaml
1360 lines (1253 loc) · 35.4 KB
/
values-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Name of the application.
applicationName: "application"
namespaceOverride: ""
# These labels will be added on all resources, and you can add additional labels from below on individual resource
labels:
group: com.stakater.platform
team: stakater
deployment:
dnsConfig:
options:
- name: ndots
value: '1'
# By default deploymentStrategy is set to rollingUpdate with maxSurge of 25% and maxUnavailable of 25%
# You can change type to `Recreate` or can uncomment `rollingUpdate` specification and adjust them to your usage.
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
# Reload deployment if configMap/secret updates
reloadOnChange: true
# Select nodes to deploy which matches the following labels
nodeSelector:
# cloud.google.com/gke-nodepool: default-pool
# Init containers which runs before the app container
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"
- ip: "10.1.2.3"
hostnames:
- "foo.remote"
- "bar.remote"
# Init containers which runs before the app container
initContainers:
init-contaner:
image: busybox
imagePullPolicy: IfNotPresent
command: ['/bin/sh']
# Additional labels for Deployment
additionalLabels:
key: value
# Additional label added on pod which is used in Service's Label Selector
podLabels:
env: prod
# Annotations on deployments
annotations:
# Additional Pod Annotations added on pod created by this Deployment
additionalPodAnnotations:
key: value
# Annotations for fluentd Configurations
fluentdConfigAnnotations:
fluentd:
regex: hello
timeFormat: world
# Replicas to be created
replicas: 2
# Secrets used to pull image
imagePullSecrets: ""
# If want to mount Envs from configmap or secret
envFrom:
production-cm:
type: configmap
nameSuffix: my-configmap
logging-config:
type: configmap
name: your-configmap
postgres-config:
type: secret
nameSuffix: postgres
# Environment variables to be passed to the app container
env:
ENVIRONMENT:
value: "dev"
# Volumes to be added to the pod
volumes:
config-volume:
configMap:
name: configmap-name
configmap-volume:
configMap:
name: '{{ template "application.name" . }}-configmap-nameSuffix'
secret-volume:
secret:
secretName: secret-name
volume-name:
emptyDir: {}
persistent-volume-name:
persistentVolumeClaim:
claimName: claim-name
# Mount path for Volumes
volumeMounts:
volume-name:
mountPath: /path1
# The priority class for pod scheduling
priorityClassName: ""
# Taint tolerations for nodes
tolerations:
- key: "dedicated"
operator: "Equal"
value: "app"
effect: "NoSchedule"
# Pod affinity and pod anti-affinity allow you to specify rules about how pods should be placed relative to other pods.
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: disktype
operator: In
values:
- ssd
# Image of the app container
image:
repository: repository/image-name
tag: v1.0.0
pullPolicy: IfNotPresent
# Startup, Readiness and Liveness probes
startupProbe:
enabled: true
failureThreshold: 30
periodSeconds: 10
httpGet:
path: '/path'
port: 8080
exec: { }
readinessProbe:
enabled: true
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
initialDelaySeconds: 10
exec:
command:
- cat
- tmp/healthy
livenessProbe:
enabled: true
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
initialDelaySeconds: 10
httpGet:
path: /path
port: 8080
# Resources to be defined for pod
resources:
limits:
memory: 256Mi
cpu: 0.5
requests:
memory: 128Mi
cpu: 0.1
# Security Context at Container Level
containerSecurityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
openshiftOAuthProxy:
enabled: true
port: 8080
secretName: "openshift-oauth-proxy-tls"
# Add additional containers besides init and app containers
additionalContainers:
- name: sidecar-contaner
image: busybox
imagePullPolicy: IfNotPresent
command: ['/bin/sh']
# Security Context for the pod
securityContext:
# fsGroup: 2000
# Command for primary container
command: []
# Args for primary contaner
args: []
# List of ports for the primary container
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8778
name: jolokia
protocol: TCP
- containerPort: 8443
name: https
protocol: TCP
# Networking using the host network
hostNetwork: true
# Graceful termination timeout
terminationGracePeriodSeconds: 120
# Container lifecycle management for graceful startup and shutdown procedures
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "sleep 20"]
# Add Storage volumes to the pods
persistence:
enabled: true
mountPVC: false
mountPath: "/"
name: ""
accessMode: ReadWriteOnce
## If defined, storageClass: <storageClass>
## If set to "-", storageClass: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClass spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
storageClass: "-"
additionalLabels:
key: "value"
annotations:
# "helm.sh/resource-policy": keep
storageSize: 8Gi
volumeMode: "Filesystem"
volumeName: ""
# Service object for servicing pods
service:
additionalLabels:
key: value
expose: "true"
annotations:
config.xposer.stakater.com/Domain: stakater.com
config.xposer.stakater.com/IngressNameTemplate: '{{ "{{.Service}}-{{.Namespace}}" }}'
config.xposer.stakater.com/IngressURLPath: /
config.xposer.stakater.com/IngressURLTemplate: '{{ "{{.Service}}.{{.Namespace}}.{{.Domain}}" }}'
service.alpha.openshift.io/serving-cert-secret-name: |
'{{ template "application.name" . }}-tls'
xposer.stakater.com/annotations: |-
kubernetes.io/ingress.class: external-ingress
ingress.kubernetes.io/rewrite-target: /
ingress.kubernetes.io/force-ssl-redirect: "true"
ports:
- port: 8080
name: http
protocol: TCP
targetPort: 8080
type: ClusterIP
# Ingress object for exposing services
ingress:
enabled: true
# Name of the ingress class
ingressClassName: nginx
# Port of the service that serves pods
servicePort: http
#Set pathType: default is ImplementationSpecific; Options: Exact, Prefix
pathType: ImplementationSpecific
# List of host addresses to be exposed by this Ingress
hosts:
- host: chart-example.local
paths:
- path: /
# pathType: ''
# serviceName: ''
# servicePort: ''
- path: /subpath
# pathType: ''
# serviceName: ''
# servicePort: ''
- host: '{{ .Release.Name }}.stakater.com'
paths:
- path: /
# Additional labels for this Ingress
additionalLabels:
key: value
# Add annotations to this Ingress
annotations:
kubernetes.io/ingress.class: external-ingress
ingress.kubernetes.io/rewrite-target: /
ingress.kubernetes.io/force-ssl-redirect: "true"
# TLS details for this Ingress
tls:
# Secrets must be manually created in the namespace.
- secretName: chart-example-tls
hosts:
- chart-example.local
- '{{ .Release.Name }}.stakater.com'
# Route object for exposing services (OpenShift only)
route:
enabled: true
# Add annotations to this Route
annotations:
kubernetes.io/ingress.class: external-ingress
ingress.kubernetes.io/rewrite-target: /
ingress.kubernetes.io/force-ssl-redirect: "true"
# Additional labels for this Route
additionalLabels:
key: value
# If no host is added then openshift inserts the default hostname. To Add host explicitly, use host attribute
host:
path: /document
# Port of the service that serves pods
port:
targetPort: http
to:
weight: 80
wildcardPolicy: None
tls:
# TLS Termination strategy
termination: edge
insecureEdgeTerminationPolicy: Redirect
alternateBackends:
kind: Service
name: alternate-application
weight: 20
secretProviderClass:
enabled: true
name: mongo-host
provider: vault
vaultAddress: "http://vault:8200"
roleName: '{{ .Release.Name }}'
objects: |
- objectName: "MONGO_HOST"
secretPath: "testing/data/mongoDb"
secretKey: "MONGO_HOST"
secretObjects:
- data:
- key: MONGO_HOST
objectName: host
secretName: secret-mongo-host
type: Opaque
# Expose Application on Forecastle Dashboard
forecastle:
enabled: true
# Add additional labels on Forecastle Custom Resource
additionalLabels:
key: value
# URL of the icon for the custom app
icon: https://raw.githubusercontent.com/stakater/ForecastleIcons/master/stakater-big.png
# Name of the application to be displayed on the Forecastle Dashboard
displayName: "application"
# Group for the custom app (default: .Release.Namespace)
group: ""
# Add properties to Custom Resource
properties:
# Whether app is network restricted or not
networkRestricted: false
# Role Based Access Control
rbac:
enabled: true
# Service Account to use by pods
serviceAccount:
enabled: true
name: "application"
# Additional Labels on service account
additionalLabels:
key: value
# Annotations on service account
annotations:
# key: value
# Create Roles (Namespaced)
roles:
- name: configmaps
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- name: secrets
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
# Additional ConfigMaps
configMap:
enabled: true
additionalLabels:
key: value
annotations:
# key: value
files:
code-config:
key1: value1
key2: value2
dev-config:
key1: value1
key2: value2
sealedSecret:
enabled: true
additionalLabels:
# key: value
annotations:
# key: value
files:
# nameSuffix of sealedSecret
example:
encryptedData:
name: AgBghrdepGMKmp/rdtJrkBv/CWpJbtmoMsbKQ7QiZZ2kUoLeeTbrDnhmJY03kWKkNW4kN/sQRf6r1vvBEaR4nkHt5f/ayAeaH3NveI3bdb0xv/svvWjyjehwqwr/kNEAVWxRoUij0Y7MyIEAr4hnV2UnrhgvcjPJLNA8bK6spA+kuT328Vpyceyvnm6yArNn1aYlEckaFHrnculHWRpG73iRYxS5GWAY7EdkLXx7OLLWoopHtLcupklYyPfraJzPvBNZ5/PsyjlUBvoQbGV3cZlrdEj1WHj2S1RQ13ddf2WGtMHmY83t9B3LFZAZuA7BBt4rjludbwQm3/tJ5Kas1dDsSIRIIF7MTeum9YfRB8XUz8IxVKQ/JDskeynrWe3VzN/3HFVnv9GGFy+BCVXZKVU/roIRancz+nXkyoOHS722ZpBi53dfLItoS5dG+0EzArMTQzK/KXHz3b1rxp5oWWDNt3WggTiSg2zwy5ZR8VV2ToTDof6UrFmbCZv/kKriyxbVSxIo3KFnvuRiUZ5MwC0TNut4mW3LKyJfHqkUuLa1mYV6tKF58qBnoj/+JaibAIBEudT9hms5U52p7/jKmgHuop7XPEsz4OVwER//Vbv7X6ctoXtyPu6mZyOfOyJHM8Qj/H7/gwMBYhZHQ96DWrVmZOsWSRpZGJni4Xm7rgt2cFj6UtWv6lvl8aOi/HSZVC3TwWZ9mQrk
annotations:
key: value
labels:
key: value
type: Opaque
clusterWide: true
# Additional Secrets
secret:
enabled: true
additionalLabels:
key: value
annotations:
# key: value
files:
# nameSuffix of Secret
# credentials:
# data:
# secretKey1: secretValue1
# secretKey2: secretValue2
# encodedData:
# secretKey3: c2VjcmV0VmFsdWUx
# secretKey4: c2VjcmV0VmFsdWUy
# stringData:
# secretKey5: secretValue1
# secretKey6: secretValue2
# password:
# data:
# secretKey1: secretValue1
# secretKey2: secretValue2
# encodedData:
# secretKey3: c2VjcmV0VmFsdWUx
# secretKey4: c2VjcmV0VmFsdWUy
# stringData:
# secretKey5: secretValue1
# secretKey6: secretValue2
# Service Monitor to collect Prometheus metrices
serviceMonitor:
enabled: true
# Additional labels
additionalLabels:
key: value
# Additional annotations
annotations:
# key: value
# List of the endpoints of service from which prometheus will scrape data
endpoints:
- interval: 5s
path: /actuator/prometheus
port: http
# autoscaling is used for horizonal pod autoscaling
autoscaling:
# enabled is a boolean flag for enabling or disabling autoscaling
enabled: true
# additionalLabels defines additional labels
additionalLabels:
key: value
# annotations defines annotations in key value pair
annotations:
# key: value
# minReplicas sets the minimum number of replicas
minReplicas: 1
# maxReplicas sets the maximum number of replicas
maxReplicas: 10
# metrics is the list of metrics used for hpa
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 60
# autoscaling is used for vertical pod autoscaling
vpa:
# enabled is a boolean flag for enabling or disabling vpa
enabled: true
# additionalLabels defines additional labels
additionalLabels:
# key: value
# annotations defines annotations in key value pair
annotations:
# key: value
# container policies for individual containers.
# There can be at most one entry for every named container and optionally a single wildcard entry with `containerName = '*'`, which handles all containers that do not have individual policies.
containerPolicies:
- containerName: '*'
minAllowed:
cpu: 0.5
memory: 1Gi
maxAllowed:
cpu: 1
memory: 5Gi
# EndpointMonitor for IMC (https://github.com/stakater/IngressMonitorController)
endpointMonitor:
enabled: true
# Additional labels
additionalLabels:
key: value
# Additional annotations
annotations:
# key: value
# Certficate CRD to generate the certificate
certificate:
enabled: false
# Additional labels
additionalLabels:
key: value
# Additional annotations
annotations:
# key: value
secretName: tls-cert
duration: 8760h0m0s # 1 year
renewBefore: 720h0m0s # 30d
subject:
# organizations:
# - stakater
# countries:
# - SE
# organizationalUnits:
# - '{{ template "application.namespace" . }}'
# localities:
# - Stockholm
# provinces:
# - Stockholm
commonName: admin-app
keyAlgorithm: rsa
keyEncoding: pkcs1
keySize: 2048
isCA: false
usages:
# - digital signature
# - client auth
dnsNames:
# - admin-app
ipAddresses:
# - 192.168.0.5
uriSANs:
# - spiffe://cluster.local/ns/sandbox/sa/example
emailSANs:
# - emailSubjectAltNames
privateKey:
enabled: true
rotationPolicy: Always
issuerRef:
name: ca-issuer
# We can reference ClusterIssuers by changing the kind here.
kind: ClusterIssuer
group: #cert-manager.io
keystores:
enabled: true
pkcs12:
create: true
key: test_key
name: test-creds
jks:
create: false
key: test_key
name: test-creds
# AlertmanagerConfig object for defining application specific alertmanager configurations
alertmanagerConfig:
enabled: true
# AlertmanagerConfig selectionLabels to specify label to be picked up by Alertmanager to add it to base config. Read more about it at [https://docs.openshift.com/container-platform/4.7/rest_api/monitoring_apis/alertmanager-monitoring-coreos-com-v1.html] under .spec.alertmanagerConfigSelector
selectionLabels:
alertmanagerConfig: "workload"
# AlertmanagerConfig spec, read details here [https://docs.openshift.com/container-platform/4.7/rest_api/monitoring_apis/alertmanagerconfig-monitoring-coreos-com-v1alpha1.html]
spec:
route:
receiver: "null"
groupBy:
- job
routes:
- receiver: "null"
groupBy:
- alertname
- severity
continue: true
groupWait: 30s
groupInterval: 5m
repeatInterval: 12h
receivers:
- name: "null"
inhibitRules:
- sourceMatch:
- name: severity
value: 'critical'
targetMatch:
- name: severity
value: 'warning'
equal: ['cluster', 'service']
# PrometheusRule object for defining application alerting rules
prometheusRule:
enabled: true
# PrometheusRule labels
additionalLabels:
prometheus: stakater-workload-monitoring
role: alert-rules
# Groups with alerting rules. Read more here [https://docs.openshift.com/container-platform/4.7/rest_api/monitoring_apis/prometheusrule-monitoring-coreos-com-v1.html]
groups:
- name: example-app-uptime
rules:
- alert: ExampleAppDown
annotations:
message: >-
The Example App is Down (Test Alert)
expr: up{namespace="test-app"} == 0
for: 1m
labels:
severity: critical
# ExternalSecrets
externalSecret:
enabled: true
#SecretStore defines which SecretStore to use when fetching the secret data
secretStore:
name: example-secret-store
#kind: SecretStore # or ClusterSecretStore
# RefreshInterval is the amount of time before the values reading again from the SecretStore provider
refreshInterval: "1m"
files:
secret-1-name:
#Data defines the connection between the Kubernetes Secret keys and the Provider data
data:
example-secret-key:
remoteRef:
key: example-provider-key
property: example-provider-key-property
secret-2-name:
#Used to fetch all properties from the Provider key
dataFrom:
key: example-provider-key
type: Opaque
annotations:
key: value
labels:
key: value
##########################################################
# Network Policy
##########################################################
networkPolicy:
enabled: false
# Additional labels
additionalLabels:
key: value
# Additional annotations
annotations:
# key: value
# Ingress rules
ingress:
- from:
- ipBlock:
cidr: 172.17.0.0/16
except:
- 172.17.1.0/24
- namespaceSelector:
matchLabels:
project: myproject
- podSelector:
matchLabels:
role: frontend
ports:
- protocol: TCP
port: 6379
# Egress rules
egress:
- to:
- ipBlock:
cidr: 10.0.0.0/24
ports:
- protocol: TCP
port: 5978
##########################################################
# Pod disruption budget - PDB
##########################################################
pdb:
enabled: true
minAvailable: 1
maxUnavailable: 2
# Grafana Dashboard
grafanaDashboard:
enabled: true
additionalLabels:
test-label: chart
annotations:
test-annoation: chart
contents:
dashboard-test-name-1:
json: |-
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 9,
"iteration": 1592326712687,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 0
},
"id": 3,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideZero": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(irate(haproxy_server_http_responses_total{code=\"5xx\", route=~\"$route\", namespace=~\"$namespace\", pod=~\"$router\"}[$rate])) by (namespace, code, route)",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Route: {{route}}, Namespace: {{namespace}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Failure Requests Rate (5xx)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "none",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 9
},
"id": 4,
"legend": {
"alignAsTable": true,
"avg": false,
"current": false,
"hideEmpty": false,
"hideZero": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(irate(haproxy_server_http_responses_total{code=\"2xx\", route=~\"$route\", namespace=~\"$namespace\", pod=~\"$router\"}[$rate])) by (namespace, code, route)",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Route: {{route}}, Namespace: {{namespace}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Successful Requests Rate (2xx)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "none",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null