Skip to content

Commit bce5097

Browse files
meobilivangrichardcase
authored andcommitted
helm charts for jaeger all-in-one + otel collector
1 parent 2213873 commit bce5097

File tree

3 files changed

+135
-0
lines changed

3 files changed

+135
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2021 The Kubernetes Authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# "Borrow" with permission from CAPZ team: https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/hack/observability/jaeger/fetch-jaeger-resources.sh
18+
19+
set -o errexit
20+
set -o nounset
21+
set -o pipefail
22+
23+
CHART_RELEASE=${CHART_RELEASE:-0.1.8}
24+
JAEGER_ROOT=$(dirname "${BASH_SOURCE[0]}")
25+
CHART_ROOT=$JAEGER_ROOT/chart
26+
27+
rm -rf "$CHART_ROOT"
28+
# "tar" has no POSIX standard, so use only basic options and test with both BSD and GNU.
29+
wget -qO- https://github.com/hansehe/jaeger-all-in-one/raw/master/helm/charts/jaeger-all-in-one-"$CHART_RELEASE".tgz \
30+
| tar xvz -C "$JAEGER_ROOT"
31+
mv "$JAEGER_ROOT"/jaeger-all-in-one "$CHART_ROOT"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2021 The Kubernetes Authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# "Borrow" with permission from CAPZ team: https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/hack/observability/opentelemetry/fetch-otel-resources.sh
18+
19+
20+
set -o errexit
21+
set -o nounset
22+
set -o pipefail
23+
24+
CHART_RELEASE=${CHART_RELEASE:-0.53.0}
25+
OTEL_ROOT=$(dirname "${BASH_SOURCE[0]}")
26+
CHART_ROOT=$OTEL_ROOT/chart
27+
28+
29+
rm -rf "$CHART_ROOT"
30+
# # "tar" has no POSIX standard, so use only basic options and test with both BSD and GNU.
31+
wget -qO- https://github.com/open-telemetry/opentelemetry-helm-charts/releases/download/opentelemetry-collector-"$CHART_RELEASE"/opentelemetry-collector-"$CHART_RELEASE".tgz \
32+
| tar xvz -C "$OTEL_ROOT" --exclude "ci" --exclude "examples"
33+
mv "$OTEL_ROOT"/opentelemetry-collector "$CHART_ROOT"
34+
wget -q https://raw.githubusercontent.com/open-telemetry/opentelemetry-helm-charts/main/LICENSE -P "$CHART_ROOT"
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
mode: "deployment"
2+
3+
config:
4+
receivers:
5+
jaeger: null # disable Jaeger receiver
6+
#otlp: # using default configs
7+
prometheus: null # disable Prometheus receiver
8+
zipkin: null # disable Zipkin receiver
9+
10+
# (2) Processors
11+
processors:
12+
memory_limiter:
13+
limit_percentage: 50
14+
check_interval: 1s
15+
spike_limit_percentage: 30
16+
batch:
17+
send_batch_size: 8192
18+
19+
# (3) exporter
20+
exporters:
21+
jaeger:
22+
endpoint: jaeger-all-in-one:14250
23+
tls:
24+
insecure: true
25+
#export to Cloud Trace on GCP
26+
googlecloud:
27+
# disable metric + logging collections
28+
metric: null
29+
log: null
30+
# use default configs for trace
31+
#trace:
32+
#use_insecure: true
33+
34+
# (4) service
35+
service:
36+
# A pipeline = a set of receivers, processors and exporters.
37+
pipelines:
38+
metrics: null
39+
logs: null
40+
traces:
41+
receivers: [otlp]
42+
processors: [memory_limiter, batch]
43+
exporters: [jaeger, googlecloud]
44+
45+
image:
46+
repository: otel/opentelemetry-collector-contrib
47+
pullPolicy: IfNotPresent
48+
tag: 0.75.0
49+
command:
50+
name: otelcol-contrib
51+
52+
# Configuration for connecting to GCP's Cloud Trace
53+
extraEnvs:
54+
- name: GOOGLE_APPLICATION_CREDENTIALS
55+
value: /home/.gcp/credentials.json
56+
57+
# retrieve GOOGLE_APPLICATION_CREDENTIALS env var from Secret
58+
extraVolumes:
59+
- name: credentials
60+
secret:
61+
secretName: manager-bootstrap-credentials
62+
63+
extraVolumeMounts:
64+
- name: credentials
65+
mountPath: /home/.gcp
66+
67+
ports:
68+
jaeger-thrift: null
69+
jaeger-grpc: null
70+
zipkin: null

0 commit comments

Comments
 (0)