1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/tempo/tasks/main.yml
Sven-Hendrik Haase 0c97667925
Deploy tempo
This will be our backend for a Grafana-based APM.
It is sorely required for gaining insights into why application such as aurweb are slow.

We currently only enable the OTLP receiver as it seems to be the most
modern and best supported one.

We connect directly to the prometheus at localhost for the generated
metrics.

We're also using just storing traces locally in files instead of
something like S3.
2024-08-03 22:30:16 +02:00

17 lines
623 B
YAML

- name: Install tempo
pacman: name=tempo state=present
- name: Open promtail ipv4 port for monitoring.archlinux.org
ansible.posix.firewalld: zone=wireguard state=enabled permanent=true immediate=yes
rich_rule="rule family=ipv4 source address={{ hostvars['monitoring.archlinux.org']['wireguard_address'] }} port protocol=tcp port=4318 accept"
tags:
- firewall
- name: Configure tempo
template: src=config.yml.j2 dest=/etc/tempo/config.yml owner=tempo group=tempo mode=0644
notify:
- Restart tempo
- name: Enable tempo server service
systemd: name=tempo enabled=yes daemon_reload=yes state=started