From 358a53e82621db15b6043caf1c2400aee868651f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 10 Aug 2023 20:05:09 +0100 Subject: [PATCH] Add host_location metric for machines in dublin and amsterdam --- roles/equinix-ams.rb | 8 ++++++++ roles/equinix-dub.rb | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/roles/equinix-ams.rb b/roles/equinix-ams.rb index 7eb6cae11..7923e09d4 100644 --- a/roles/equinix-ams.rb +++ b/roles/equinix-ams.rb @@ -26,6 +26,14 @@ default_attributes( } } }, + :prometheus => { + :metrics => { + :host_location => { + :help => "Host location", + :labels => { :site => "amsterdam" } + } + } + }, :web => { :fileserver => "ironbelly", :readonly_database_host => "snap-01.ams.openstreetmap.org", diff --git a/roles/equinix-dub.rb b/roles/equinix-dub.rb index fd2a40430..e24d71a1f 100644 --- a/roles/equinix-dub.rb +++ b/roles/equinix-dub.rb @@ -35,6 +35,14 @@ default_attributes( } } }, + :prometheus => { + :metrics => { + :host_location => { + :help => "Host location", + :labels => { :site => "dublin" } + } + } + }, :web => { :fileserver => "fafnir", :readonly_database_host => "snap-03.dub.openstreetmap.org" -- 2.39.5