-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathzilla.yaml
121 lines (119 loc) · 3.08 KB
/
zilla.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
---
name: zilla-petstore
guards:
petstore_auth:
type: jwt
options:
issuer: https://auth.example.com
audience: https://api.example.com
keys:
- kty: RSA
n: qqEu50hX+43Bx4W1UYWnAVKwFm+vDbP0kuIOSLVNa+HKQdHTf+3Sei5UCnkskn796izA29D0DdCy3ET9oaKRHIJyKbqFl0rv6f516QzOoXKC6N01sXBHBE/ovs0wwDvlaW+gFGPgkzdcfUlyrWLDnLV7LcuQymhTND2uH0oR3wJnNENN/OFgM1KGPPDOe19YsIKdLqARgxrhZVsh06OurEviZTXOBFI5r+yac7haDwOQhLHXNv+Y9MNvxs5QLWPFIM3bNUWfYrJnLrs4hGJS+y/KDM9Si+HL30QAFXy4YNO33J8DHjZ7ddG5n8/FqplOKvRtUgjcKWlxoGY4VdVaDQ==
e: AQAB
alg: RS256
kid: example
catalogs:
my_apicurio:
type: apicurio
options:
url: ${{env.APICURIO_URL}}
group-id: petstore
bindings:
north_rest_server:
type: openapi
kind: server
vault: pet_server
options:
http:
authorization:
zilla-petstore:petstore_auth:
credentials:
headers:
authorization: Bearer {credentials}
specs:
petstore-rest-spec:
catalog:
my_apicurio:
subject: petstore-openapi
version: ${{env.PETSTORE_VERSION}}
servers:
- url: ${{env.API_URL}}
exit: north_rest_kafka_proxy
telemetry:
metrics:
- stream.*
- http.*
north_rest_kafka_proxy:
type: openapi-asyncapi
kind: proxy
options:
specs:
openapi:
petstore-rest-spec:
catalog:
my_apicurio:
subject: petstore-openapi
version: ${{env.PETSTORE_VERSION}}
asyncapi:
petstore-kafka-spec:
catalog:
my_apicurio:
subject: petstore-asyncapi
version: ${{env.PETSTORE_VERSION}}
routes:
- when:
- api-id: petstore-rest-spec
exit: south_kafka_client
with:
api-id: petstore-kafka-spec
telemetry:
metrics:
- stream.*
south_kafka_client:
type: asyncapi
kind: client
options:
specs:
petstore-kafka-spec:
catalog:
my_apicurio:
subject: petstore-asyncapi
version: ${{env.PETSTORE_VERSION}}
servers:
- host: ${{env.KAFKA_HOST}}
kafka:
sasl:
mechanism: plain
username: ${{env.KAFKA_USER}}
password: ${{env.KAFKA_PASS}}
telemetry:
metrics:
- stream.*
telemetry:
# Desired metrics to track
metrics:
- http.active.requests
- http.duration
- http.request.size
- http.response.size
- stream.active.received
- stream.active.sent
- stream.closes.received
- stream.closes.sent
- stream.data.received
- stream.data.sent
- stream.errors.received
- stream.errors.sent
- stream.opens.received
- stream.opens.sent
# Prometheus endpoint definition
exporters:
prometheus_metric_exporter:
type: prometheus
options:
endpoints:
- scheme: http
path: /metrics
port: 7190
stdout_exporter:
type: stdout