Skip to content

Commit 11451c6

Browse files
authored
Merge pull request #163 from elainemccloskey/SUP-2734
(SUP-2734) Collection to use FQDN to connect to the PuppetDB instance when runni…
2 parents 268dd54 + e938b60 commit 11451c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/pe_metrics.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def post_endpoint(url, use_ssl, post_data)
115115

116116
def retrieve_additional_metrics(host, port, use_ssl, metrics_type, metrics)
117117
if metrics_type == 'puppetdb'
118-
host = '127.0.0.1' if host == CERTNAME
118+
host = '127.0.0.1' if host == CERTNAME && !REMOTE_METRICS_ENABLED
119119
unless REMOTE_METRICS_ENABLED || ['127.0.0.1', 'localhost'].include?(host)
120120
# Puppet services released between May, 2020 and Feb 2021 had
121121
# the /metrics API disabled due to:

0 commit comments

Comments
 (0)