Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
6bc48d0e
Commit
6bc48d0e
authored
May 13, 2017
by
Adam Niedzielski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow GitLab instance to start when InfluxDB hostname cannot be resolved
Closes #24438
parent
361b2b13
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
changelogs/unreleased/adam-influxdb-hostname.yml
changelogs/unreleased/adam-influxdb-hostname.yml
+4
-0
lib/gitlab/metrics.rb
lib/gitlab/metrics.rb
+3
-0
No files found.
changelogs/unreleased/adam-influxdb-hostname.yml
0 → 100644
View file @
6bc48d0e
---
title
:
Allow GitLab instance to start when InfluxDB hostname cannot be resolved
merge_request
:
11356
author
:
lib/gitlab/metrics.rb
View file @
6bc48d0e
...
@@ -49,6 +49,9 @@ module Gitlab
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment