Verified Commit 248e57b3 authored by Evangelos Foutras's avatar Evangelos Foutras 🐱
Browse files

Remove [node_exporters]/[wireguard] from inventory

All servers are part of these groups which makes them redundant.
parent f6f4a5dc
......@@ -5,7 +5,6 @@ To access our monitoring system, go to https://monitoring.archlinux and log in v
## Adding a new host to monitoring
* Add $host to node_exporters in `hosts`
* Rollout exporter on host: `ansible-playbook playbooks/host.yml -t prometheus_exporters`
* Rollout changes on monitoring host: `ansible-playbook playbooks/monitoring.archlinux.org.yml -t prometheus`
......
......@@ -100,80 +100,6 @@ patchwork.archlinux.org
[prometheus]
monitoring.archlinux.org
[node_exporters]
archlinux.org
aur.archlinux.org
monitoring.archlinux.org
gitlab.archlinux.org
reproducible.archlinux.org
runner2.archlinux.org
secure-runner1.archlinux.org
phrik.archlinux.org
quassel.archlinux.org
state.archlinux.org
mirror.pkgbuild.com
homedir.archlinux.org
mail.archlinux.org
matrix.archlinux.org
accounts.archlinux.org
bbs.archlinux.org
build.archlinux.org
bugs.archlinux.org
gemini.archlinux.org
repro1.pkgbuild.com
wiki.archlinux.org
patchwork.archlinux.org
security.archlinux.org
redirect.archlinux.org
asia.mirror.pkgbuild.com
america.mirror.pkgbuild.com
europe.mirror.pkgbuild.com
repro2.pkgbuild.com
runner1.archlinux.org
md.archlinux.org
man.archlinux.org
dashboards.archlinux.org
lists.archlinux.org
gluebuddy.archlinux.org
debuginfod.archlinux.org
[wireguard]
archlinux.org
aur.archlinux.org
monitoring.archlinux.org
gitlab.archlinux.org
reproducible.archlinux.org
runner2.archlinux.org
secure-runner1.archlinux.org
phrik.archlinux.org
quassel.archlinux.org
state.archlinux.org
mirror.pkgbuild.com
homedir.archlinux.org
mail.archlinux.org
matrix.archlinux.org
accounts.archlinux.org
bbs.archlinux.org
build.archlinux.org
bugs.archlinux.org
gemini.archlinux.org
repro1.pkgbuild.com
wiki.archlinux.org
patchwork.archlinux.org
security.archlinux.org
redirect.archlinux.org
asia.mirror.pkgbuild.com
america.mirror.pkgbuild.com
europe.mirror.pkgbuild.com
repro2.pkgbuild.com
runner1.archlinux.org
md.archlinux.org
man.archlinux.org
dashboards.archlinux.org
lists.archlinux.org
gluebuddy.archlinux.org
debuginfod.archlinux.org
[kape_servers]
asia.mirror.pkgbuild.com
america.mirror.pkgbuild.com
......
......@@ -52,7 +52,7 @@ scrape_configs:
- job_name: 'node_exporter'
static_configs:
{% for host in groups['node_exporters'] %}
{% for host in groups['all'] %}
- targets: ['{{ host }}:{{ prometheus_exporter_port }}']
labels:
instance: "{{ host }}"
......@@ -60,7 +60,7 @@ scrape_configs:
- job_name: 'promtail'
static_configs:
{% for host in groups['node_exporters'] %}
{% for host in groups['all'] %}
- targets: ['{{ hostvars[host]['wireguard_address'] }}:9080']
labels:
instance: "{{ host }}"
......
......@@ -6,7 +6,7 @@ Kind=wireguard
ListenPort=51820
PrivateKey={{ vault_wireguard_private_key }}
{% for host in groups['wireguard'] if host != inventory_hostname %}
{% for host in groups['all'] if host != inventory_hostname %}
[WireGuardPeer]
PublicKey={{ hostvars[host]['wireguard_public_key'] }}
AllowedIPs={{ hostvars[host]['wireguard_address'] }}/32
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment