diff --git a/playbooks/deploy_exporters_vhosts.yml b/playbooks/deploy_exporters_vhosts.yml index feb72e1..dedd548 100644 --- a/playbooks/deploy_exporters_vhosts.yml +++ b/playbooks/deploy_exporters_vhosts.yml @@ -1,28 +1,38 @@ -- name: setup Prometheus exporters +- name: setup otel exporters hosts: cn-homepage.svc.plus become: true vars: - group: cn-homepage.svc.plus - domains: - - cn-homepage.svc.plus - - cn-artifact.svc.plus - - www.svc.plus - - artifact.svc.plus + group: web + exporters: + endpoint: https://otel.svc.plus/api/default/ roles: - roles/vhosts/common/ - roles/vhosts/node_exporter/ - roles/vhosts/process_exporter/ -- name: setup Prometheus exporters + - roles/vhosts/otel-collector/ +- name: setup otel exporters hosts: global-homepage.svc.plus become: true vars: - group: global-homepage.svc.plus - domains: - - global-homepage.svc.plus - - global-artifact.svc.plus - - www.svc.plus - - artifact.svc.plus + group: web + exporters: + endpoint: https://otel.svc.plus/api/default/ roles: - roles/vhosts/common/ - roles/vhosts/node_exporter/ - roles/vhosts/process_exporter/ + - roles/vhosts/otel-collector/ +- name: setup otel exporters + hosts: otel.svc.plus + become: true + vars: + group: web + exporters: + endpoint: https://otel.svc.plus/api/default/ + roles: + - roles/vhosts/common/ + - roles/vhosts/node_exporter/ + - roles/vhosts/process_exporter/ + - roles/vhosts/otel-collector/ + - roles/vhosts/grafana/ + - roles/vhosts/openobserve/ diff --git a/playbooks/inventory.ini b/playbooks/inventory.ini index 338d9b1..289026c 100644 --- a/playbooks/inventory.ini +++ b/playbooks/inventory.ini @@ -1,6 +1,7 @@ [web] cn-homepage.svc.plus ansible_host=47.120.61.35 global-homepage.svc.plus ansible_host=167.179.72.223 +otel.svc.plus ansible_host=52.196.108.28 ansible_user=ubuntu [deepflow_agents] 192.168.1.101 ansible_user=root ansible_ssh_pass=pass101