forked from BuoyantIO/emojivoto
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tracing.yml
157 lines (157 loc) · 3.06 KB
/
tracing.yml
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
---
apiVersion: v1
kind: Namespace
metadata:
name: tracing
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: jaeger
namespace: tracing
labels:
app: jaeger
spec:
replicas: 1
selector:
matchLabels:
app: jaeger
template:
metadata:
labels:
app: jaeger
spec:
dnsPolicy: ClusterFirst
containers:
- name: jaeger
image: jaegertracing/all-in-one:1.8
ports:
- name: collection
containerPort: 14268
- name: ui
containerPort: 16686
---
apiVersion: v1
kind: Service
metadata:
name: jaeger
namespace: tracing
labels:
app: jaeger
spec:
selector:
app: jaeger
ports:
- name: collection
port: 14268
- name: ui
port: 16686
---
apiVersion: v1
kind: ConfigMap
metadata:
name: oc-collector-conf
namespace: tracing
labels:
app: opencensus
component: oc-collector-conf
data:
oc-collector-config: |
receivers:
opencensus:
port: 55678
zipkin:
port: 9411
queued-exporters:
jaeger-all-in-one:
num-workers: 4
queue-size: 100
retry-on-failure: true
sender-type: jaeger-thrift-http
jaeger-thrift-http:
collector-endpoint: http://jaeger.tracing:14268/api/traces
timeout: 5s
---
apiVersion: v1
kind: Service
metadata:
name: oc-collector
namespace: tracing
labels:
app: opencesus
component: oc-collector
spec:
ports:
- name: opencensus
port: 55678
protocol: TCP
targetPort: 55678
- name: zipkin
port: 9411
protocol: TCP
targetPort: 9411
selector:
component: oc-collector
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: oc-collector
namespace: tracing
labels:
app: opencensus
component: oc-collector
spec:
minReadySeconds: 5
progressDeadlineSeconds: 120
replicas: 1
selector:
matchLabels:
app: opencensus
template:
metadata:
annotations:
prometheus.io/path: "/metrics"
prometheus.io/port: "8888"
prometheus.io/scrape: "true"
labels:
app: opencensus
component: oc-collector
spec:
containers:
- command:
- "/occollector_linux"
- "--config=/conf/oc-collector-config.yaml"
env:
- name: GOGC
value: "80"
image: omnition/opencensus-collector:0.1.10
name: oc-collector
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 200m
memory: 400Mi
ports:
- containerPort: 55678
- containerPort: 9411
volumeMounts:
- name: oc-collector-config-vol
mountPath: /conf
livenessProbe:
httpGet:
path: /
port: 13133
readinessProbe:
httpGet:
path: /
port: 13133
volumes:
- configMap:
name: oc-collector-conf
items:
- key: oc-collector-config
path: oc-collector-config.yaml
name: oc-collector-config-vol