github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/tools/aisloader-composer/playbooks/netdata.yaml (about)

     1  - name: Set up target netdata reporting
     2    hosts: target_hosts
     3    gather_facts: yes
     4  
     5    tasks:
     6      - name: Copy netdata exporting config to target (directs stats to graphite host)
     7        ansible.builtin.copy:
     8          src: ../containers/exporting.conf
     9          dest: exporting.conf
    10  
    11      - name: Set graphite host in netdata config
    12        ansible.builtin.replace:
    13          path: exporting.conf
    14          regexp: '\bGRAPHITE_HOST\b'
    15          replace: "{{ hostvars[grafana_host].ansible_host }}"
    16  
    17      - name: Set hostname in netdata config
    18        ansible.builtin.replace:
    19          path: exporting.conf
    20          regexp: '\bNETDATA_HOST\b'
    21          replace: "{{ cluster_name }}-{{ ansible_hostname }}"
    22  
    23      - name: Ensure docker daemon is running
    24        service:
    25          name: docker
    26          state: started
    27        become: true
    28  
    29      - name: Start netdata container on target
    30        ansible.builtin.script: ../containers/deploy_netdata.sh