Skip to content

Commit

Permalink
feat: AWS deploy: gather host metrics from the agents
Browse files Browse the repository at this point in the history
Co-authored-by: Jose Luis Lucas <[email protected]>
  • Loading branch information
panchoh and Jose Luis Lucas committed Mar 4, 2019
1 parent 839925e commit 608fb27
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions deploy/aws/provision/templates/prometheus-config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,47 @@ scrape_configs:
static_configs:
- targets: ['localhost:9090']
{% for host in groups['role_qed'] %}
- job_name: 'Qed{{loop.index}}-HostMetrics'
- job_name: 'Qed{{loop.index}}-Metrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:9100']
{% endfor %}
{% for host in groups['role_qed'] %}
- job_name: 'Qed{{loop.index}}-QedMetrics'
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8600']
- job_name: 'Qed{{loop.index}}-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:8600']
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:9100']
{% endfor %}
{% for host in groups['role_publisher'] %}
- job_name: 'Agent-Publisher{{loop.index}}-Metrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:18300']
- job_name: 'Agent-Publisher{{loop.index}}-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:9100']
{% endfor %}
{% for host in groups['role_monitor'] %}
- job_name: 'Agent-Monitor{{loop.index}}-Metrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:18200']
- job_name: 'Agent-Monitor{{loop.index}}-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:9100']
{% endfor %}
{% for host in groups['role_auditor'] %}
- job_name: 'Agent-Auditor{{loop.index}}-Metrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:18100']
- job_name: 'Agent-Auditor{{loop.index}}-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:9100']
{% endfor %}
{% for host in groups['role_riot'] %}
- job_name: 'Riot{{loop.index}}-Metrics'
- job_name: 'Riot{{loop.index}}-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:9100']
Expand All @@ -63,4 +73,8 @@ scrape_configs:
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:18888']
- job_name: 'Storage{{loop.index}}-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:9100']
{% endfor %}

0 comments on commit 608fb27

Please sign in to comment.