Allow GitLab instance to start when InfluxDB hostname cannot be resolved
Closes #24438
This commit is contained in:
parent
361b2b135f
commit
6bc48d0e25
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Allow GitLab instance to start when InfluxDB hostname cannot be resolved
|
||||||
|
merge_request: 11356
|
||||||
|
author:
|
|
@ -49,6 +49,9 @@ module Gitlab
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
rescue Errno::EADDRNOTAVAIL, SocketError => ex
|
||||||
|
Gitlab::EnvironmentLogger.error('Cannot resolve InfluxDB address. GitLab Performance Monitoring will not work.')
|
||||||
|
Gitlab::EnvironmentLogger.error(ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.prepare_metrics(metrics)
|
def self.prepare_metrics(metrics)
|
||||||
|
|
Loading…
Reference in New Issue