Export Zuul traces to Jaeger

This generates TLS certs for Zuul using the jaeger CA and enables
tracing on all Zuul components, exporting to tracing.opendev.org.

Change-Id: I821e5ce4738ea0c93e116684033fa7b78e2da8c6
This commit is contained in:
James E. Blair 2022-09-22 14:47:26 -07:00
parent 11516e0e4b
commit 129083b840
2 changed files with 23 additions and 0 deletions

View File

@ -30,6 +30,22 @@
opendev_ca_cert_dir_owner: "{{ zuul_user_id }}" opendev_ca_cert_dir_owner: "{{ zuul_user_id }}"
opendev_ca_cert_dir_group: "{{ zuul_group_id }}" opendev_ca_cert_dir_group: "{{ zuul_group_id }}"
- name: Create Jaeger Config dir
file:
state: directory
path: /etc/zuul/jaeger
owner: "{{ zuul_user }}"
group: "{{ zuul_group }}"
- name: Generate Jaeger TLS cert
include_role:
name: opendev-ca
vars:
opendev_ca_name: jaeger
opendev_ca_cert_dir: /etc/zuul/jaeger
opendev_ca_cert_dir_owner: "{{ zuul_user_id }}"
opendev_ca_cert_dir_group: "{{ zuul_group_id }}"
- name: Write Zuul Conf File - name: Write Zuul Conf File
template: template:
src: zuul.conf.j2 src: zuul.conf.j2

View File

@ -69,6 +69,13 @@ realm=zuul
issuer_id=https://keycloak.opendev.org/auth/realms/zuul issuer_id=https://keycloak.opendev.org/auth/realms/zuul
client_id=zuul client_id=zuul
[tracing]
enabled=true
endpoint=tracing.opendev.org:4317
tls_cert=/etc/zuul/jaeger/certs/cert.pem
tls_key=/etc/zuul/jaeger/keys/key.pem
tls_ca=/etc/zuul/jaeger/certs/cacert.pem
{% for connection in zuul_connections -%} {% for connection in zuul_connections -%}
[connection "{{ connection['name'] }}"] [connection "{{ connection['name'] }}"]
{% for key, value in connection.items() -%} {% for key, value in connection.items() -%}