Skip to content

Commit

Permalink
Fixes for node exporter (allows running on arm and x86 and minor merg…
Browse files Browse the repository at this point in the history
…e drop failure for instance types
  • Loading branch information
tmgstevens committed May 24, 2023
1 parent c809259 commit 9d6f62d
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 @@ -374,7 +374,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 @@ -200,6 +200,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 9d6f62d

Please sign in to comment.