Add prometheus metrics to alloy

This commit is contained in:
Tobias Reisinger 2025-05-06 15:14:49 +02:00
parent 616788c5ea
commit 5ad3e9bfe2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 174 additions and 19 deletions

View file

@ -3,6 +3,9 @@ lgtm_stack_domain: "{{ all_services | service_get_domain(role_name) }}"
lgtm_stack_mimir_domain: mimir.serguzim.me
lgtm_stack_alloy_domain: alloy.serguzim.me
lgtm_stack_alloy_jobs: "{{ all_services | services_to_alloy() }}"
lgtm_stack_svc:
domain: "{{ lgtm_stack_domain }}"
port: 3000
@ -15,6 +18,12 @@ lgtm_stack_svc:
docker_host: lgtm_stack_mimir
port: 9009
caddy_extra: import vpn_only
postgresql_collector:
host: "{{ postgres.host }}"
port: "{{ postgres.port }}"
user: "{{ opentofu.postgresql_metrics_collector.user }}"
pass: "{{ opentofu.postgresql_metrics_collector.pass }}"
database: "{{ opentofu.postgresql_metrics_collector.database }}"
lgtm_stack_env: