mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
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.
17 lines
623 B
YAML
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
|