Most of the services contain different jaeger-client libraries to export traces that can be collected using e.g. Jaeger.
By using the default deployment, either using Skaffold or Helm, tracing would be disabled for all services. To enable it, the corresponding environment variables has to be set. This can be done in two ways:
Note: Tracing is configured for Jaeger by default. If you want to use a different service the values have to be adopted.
- Using Skaffold with specifying the
tracing
profile during deployment:skaffold run -p tracing
- Using Helm and passing the values file containing the necessary configuration with
-f ./chart/tracing.yaml
See in the Unguard Chart README
This document explains how to install Jaeger tracing using Helm to the cluster.
- Add Jaegertracing chart repo
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts
- For local development
- Install the Jaeger-Operator
helm install jaeger-operator jaegertracing/jaeger-operator --version 2.22.0 --wait --namespace unguard --create-namespace
- Deploy the AllInOne image for local development
kubectl apply -f ./k8s-manifests/jaeger/jaeger.yaml
- Install the Jaeger-Operator
- For production
- Install Jaeger
helm install jaeger jaegertracing/jaeger -f ./chart/jaeger.yaml --wait --namespace unguard --create-namespace
- Install Jaeger
See in the Unguard Chart README
-
Port-forward the Jaeger UI
kubectl port-forward -n unguard service/jaeger-query 16686:16686
-
Open localhost:16686
- Uninstall unguard, mariadb
helm uninstall unguard -n unguard && helm uninstall unguard-mariadb -n unguard
- Uninstall Jaeger
- For local development
helm uninstall jaeger-operator -n unguard
- For production
helm uninstall jaeger -n unguard
- For local development
Copyright 2023 Dynatrace LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.