feat(link): monitoring of debian based instances

This commit is contained in:
Iain Learmonth 2026-05-12 22:58:10 +01:00
parent dade65bc33
commit 3a26501c58
2 changed files with 17 additions and 0 deletions

View file

@ -27,6 +27,14 @@
group: "{{ podman_prometheus_podman_rootless_user }}" group: "{{ podman_prometheus_podman_rootless_user }}"
mode: "0444" mode: "0444"
become: true become: true
- name: Podman CDR Link | Update legacy instance list for Prometheus
ansible.builtin.template:
src: oldlink_sd.yml
dest: "/home/{{ podman_prometheus_podman_rootless_user }}/file-configs/oldlink.yml"
owner: "{{ podman_prometheus_podman_rootless_user }}"
group: "{{ podman_prometheus_podman_rootless_user }}"
mode: "0444"
become: true
- name: Legacy Link | Set up ClouDNS monitoring of legacy (Docker Compose) Link instances - name: Legacy Link | Set up ClouDNS monitoring of legacy (Docker Compose) Link instances
hosts: hosts:

View file

@ -0,0 +1,9 @@
---
{% for host in groups['legacy_link'] %}
- targets:
- "{{ hostvars[host].vpc_ip | default(host) }}:9100"
labels:
job: node
app: legacy_link
instance: "{{ host }}"
{% endfor %}