Skip to content

Commit

Permalink
Merge pull request #65 from tmgstevens/node-exporter-fixes
Browse files Browse the repository at this point in the history
Fixes for node exporter
  • Loading branch information
hcoyote authored Jun 2, 2023
2 parents 5ed8895 + 9d6f62d commit 8411e4a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion driver-redpanda/deploy/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,11 @@
- geerlingguy.node_exporter
vars:
- node_exporter_enabled_collectors: [ntp]
when: ansible_architecture = "x86_64"
- dist_architecture: {
"aarch64": "arm64",
"x86_64": "amd64"
}
- node_exporter_arch: "{{ [ansible_architecture] | map('extract', dist_architecture) | first }}"
tags:
- node_exporter

Expand Down
5 changes: 4 additions & 1 deletion driver-redpanda/deploy/hosts_ini.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ ${control_public_ips[0]} ansible_user=${ ssh_user } ansible_become=True private_
[prometheus]
%{ for i, ip in prometheus_host_public_ips ~}
${ ip } ansible_user=${ ssh_user } ansible_become=True private_ip=${prometheus_host_private_ips[i]} id=${i}
%{ endfor ~}
%{ endfor ~}

[all:vars]
instance_type=${instance_type}
1 change: 1 addition & 0 deletions driver-redpanda/deploy/provision-redpanda-aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ resource "local_file" "hosts_ini" {
prometheus_host_private_ips = aws_instance.prometheus.*.private_ip
control_public_ips = aws_instance.client.*.public_ip
control_private_ips = aws_instance.client.*.private_ip
instance_type = var.instance_types["redpanda"]
ssh_user = "ubuntu"
}
)
Expand Down

0 comments on commit 8411e4a

Please sign in to comment.