-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* OpenTelemetry for k8gb - by default, it is noop - iff enabled (`tracing.enabled`): * helm chart deploys otel collector as a sidecar container on k8gb pod * iff enabled (`tracing.deployJaeger`), it deploys also Jaeger and configure the otel collector to feed it with traces * if enabled, collect and send following traces: Reconcile, gslbDNSEndpoint, SaveDNSEndpoint, CreateZoneDelegationForExternalDNS, finalize - docs * Add missing license * otel: using the otlp protocol instead of Jaeger's proprietary one + updating the versions Signed-off-by: Jirka Kremser <[email protected]>
- Loading branch information
Showing
25 changed files
with
553 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,6 @@ data: | |
kind: ConfigMap | ||
metadata: | ||
name: infoblox | ||
labels: | ||
{{ include "chart.labels" . | indent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{{- if .Values.tracing.enabled }} | ||
{{- if .Values.tracing.deployJaeger }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: jaeger | ||
labels: | ||
{{ include "chart.labels" . | indent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
id: jaeger | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
id: jaeger | ||
spec: | ||
containers: | ||
- name: jaeger | ||
image: {{ .Values.tracing.jaegerImage.repository }}:{{ .Values.tracing.jaegerImage.tag }} | ||
imagePullPolicy: {{ .Values.tracing.jaegerImage.pullPolicy }} | ||
readinessProbe: | ||
httpGet: | ||
path: "/" | ||
port: 14269 | ||
initialDelaySeconds: 5 | ||
env: | ||
- name: COLLECTOR_OTLP_ENABLED | ||
value: "true" | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 128Mi | ||
requests: | ||
cpu: 10m | ||
memory: 64Mi | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{- if .Values.tracing.enabled }} | ||
{{- if .Values.tracing.deployJaeger }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: jaeger-collector | ||
labels: | ||
{{ include "chart.labels" . | indent 4 }} | ||
spec: | ||
ports: | ||
- name: dashboard | ||
port: 16686 | ||
protocol: TCP | ||
targetPort: 16686 | ||
- name: grpc-otlp-collector | ||
port: 4317 | ||
protocol: TCP | ||
targetPort: 4317 | ||
- name: http-otlp-collector | ||
port: 4318 | ||
protocol: TCP | ||
targetPort: 4318 | ||
selector: | ||
id: jaeger | ||
type: ClusterIP | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- if .Values.tracing.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: agent-config | ||
namespace: k8gb | ||
labels: | ||
{{ include "chart.labels" . | indent 4 }} | ||
data: | ||
{{- if or .Values.tracing.deployJaeger (not .Values.tracing.otelConfig ) }} | ||
agent.yaml: | | ||
receivers: | ||
otlp: | ||
protocols: | ||
http: | ||
grpc: | ||
processors: | ||
exporters: | ||
otlp: | ||
endpoint: jaeger-collector.k8gb:4317 | ||
tls: | ||
insecure: true | ||
retry_on_failure: | ||
enabled: true | ||
logging: | ||
service: | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [] | ||
exporters: [otlp] | ||
{{- else -}} | ||
agent.yaml: | | ||
{{ toYaml .Values.tracing.otelConfig | indent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if .Values.tracing.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: otel-collector | ||
labels: | ||
{{ include "chart.labels" . | indent 4 }} | ||
spec: | ||
ports: | ||
- name: http-otlp | ||
port: 4318 | ||
protocol: TCP | ||
targetPort: 4318 | ||
- name: grpc-otlp | ||
port: 4317 | ||
protocol: TCP | ||
targetPort: 4317 | ||
selector: | ||
name: k8gb | ||
type: ClusterIP | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.