Skip to content

Commit ae13964

Browse files
ArthurSensroboquat
authored andcommitted
.werft/observability: Push Jaeger traces to Honeycomb.io
As one of our first experiments with tracing with honeycomb, we want to push traces from Gitpod components to Honeycomb and learn how to work with it. Signed-off-by: ArthurSens <[email protected]>
1 parent 1f712d9 commit ae13964

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.werft/observability/monitoring-satellite.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export async function installMonitoringSatellite(params: InstallMonitoringSatell
4848
--ext-str prometheus_dns_name="prometheus-${params.previewDomain}" \
4949
--ext-str grafana_dns_name="grafana-${params.previewDomain}" \
5050
--ext-str node_affinity_label="gitpod.io/workload_services" \
51+
--ext-str honeycomb_api_key="${process.env.HONEYCOMB_API_KEY}" \
52+
--ext-str honeycomb_dataset="preview-environments" \
5153
monitoring-satellite/manifests/yaml-generator.jsonnet | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml' -- {} && \
5254
find monitoring-satellite/manifests -type f ! -name '*.yaml' ! -name '*.jsonnet' -delete`
5355

@@ -67,6 +69,7 @@ async function ensureCorrectInstallationOrder(){
6769
deployKubeStateMetrics()
6870
deployGitpodServiceMonitors()
6971
deployKubernetesServiceMonitors()
72+
deployOpenTelemetryCollector()
7073
}
7174

7275
async function deployPrometheus() {
@@ -117,6 +120,13 @@ async function deployKubernetesServiceMonitors() {
117120
exec('kubectl apply -f observability/monitoring-satellite/manifests/kubernetes/', {silent: true})
118121
}
119122

123+
async function deployOpenTelemetryCollector() {
124+
const werft = getGlobalWerftInstance()
125+
126+
werft.log(sliceName, 'installing OpenTelemetry-Collector resources')
127+
exec('kubectl apply -f observability/monitoring-satellite/manifests/otelCollector/', { silent: true })
128+
}
129+
120130
export function observabilityStaticChecks() {
121131
shell.cd('/workspace/operations/observability/mixins')
122132

.werft/values.dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ imagePullPolicy: Always
1313

1414
authProviders: []
1515
tracing:
16-
endoint: http://jaeger-collector:14268/api/traces
16+
endoint: http://otel-collector:14268/api/traces
1717
samplerType: const
1818
samplerParam: "1"
1919

0 commit comments

Comments
 (0)