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:
parent
11516e0e4b
commit
129083b840
@ -30,6 +30,22 @@
|
||||
opendev_ca_cert_dir_owner: "{{ zuul_user_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
|
||||
template:
|
||||
src: zuul.conf.j2
|
||||
|
@ -69,6 +69,13 @@ realm=zuul
|
||||
issuer_id=https://keycloak.opendev.org/auth/realms/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 -%}
|
||||
[connection "{{ connection['name'] }}"]
|
||||
{% for key, value in connection.items() -%}
|
||||
|
Loading…
Reference in New Issue
Block a user