Giuseppe Lavagetto has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312006

Change subject: role::prometheus: use the hostname, not the fqdn
......................................................................

role::prometheus: use the hostname, not the fqdn

Change-Id: I44e8605ad5e466dabc2d0ab0ad2500967b68e021
---
M modules/role/templates/prometheus/node_site.yaml.erb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/06/312006/1

diff --git a/modules/role/templates/prometheus/node_site.yaml.erb 
b/modules/role/templates/prometheus/node_site.yaml.erb
index 3f672b7..c7b9979 100644
--- a/modules/role/templates/prometheus/node_site.yaml.erb
+++ b/modules/role/templates/prometheus/node_site.yaml.erb
@@ -9,7 +9,7 @@
   all.push(
     {
       'labels' => {'cluster' => cluster, 'site' => site },
-      'targets' => targets.map{|t| "#{t}:9100" },
+      'targets' => targets.map{|t| "#{t.split('.')[0]}:9100" },
     }
   )
   end

-- 
To view, visit https://gerrit.wikimedia.org/r/312006
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I44e8605ad5e466dabc2d0ab0ad2500967b68e021
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <glavage...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to