Configuring Prometeus integration - Test Setting ends with 500
Summary
Configuring Prometheus integration - Test Setting ends with 500
Steps to reproduce
Configure Prometheus with wrong URL
What is the current bug behavior?
Causes 500
What is the expected correct behavior?
Message something like not working.
Relevant logs and/or screenshots
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol):
lib/gitlab/prometheus.rb:52:in `get'
lib/gitlab/prometheus.rb:35:in `json_api_get'
lib/gitlab/prometheus.rb:13:in `ping'
app/models/project_services/prometheus_service.rb:60:in `test'
app/controllers/projects/services_controller.rb:31:in `test'
lib/gitlab/middleware/multipart.rb:93:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/etag_caching/middleware.rb:10:in `call'
lib/gitlab/request_context.rb:18:in `call'
Results of GitLab environment info
System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.6.6
Bundler Version:1.13.7
Rake Version: 10.5.0
Redis Version: 3.2.5
Git Version: 2.11.1
Sidekiq Version:4.2.7
GitLab information
Version: 9.1.0
Revision: c3f0f14
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://gitlab.example.com
HTTP Clone URL: https://gitlab.example.com/some-group/some-project.git
SSH Clone URL: git@gitlab.example.com:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.0.2
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Checking GitLab Shell ...
GitLab Shell version >= 5.0.2 ? ... OK (5.0.2)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
4/1 ... ok
10/3 ... ok
14/4 ... ok
4/5 ... ok
4/6 ... ok
14/7 ... ok
14/8 ... ok
22/9 ... ok
22/10 ... ok
22/11 ... ok
15/12 ... ok
22/13 ... ok
15/14 ... ok
22/15 ... ok
14/16 ... ok
10/17 ... ok
22/20 ... ok
14/21 ... ok
14/22 ... ok
22/23 ... ok
18/24 ... ok
18/25 ... ok
11/26 ... ok
21/27 ... ok
11/29 ... ok
8/30 ... ok
14/31 ... ok
14/32 ... ok
11/33 ... ok
21/35 ... ok
14/36 ... ok
8/37 ... ok
24/38 ... ok
27/39 ... ok
21/40 ... ok
28/41 ... repository is empty
31/42 ... ok
33/43 ... ok
33/45 ... ok
31/46 ... ok
33/47 ... ok
37/49 ... ok
37/50 ... repository is empty
38/51 ... ok
11/52 ... ok
24/53 ... ok
33/54 ... ok
21/55 ... ok
39/56 ... ok
8/57 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
4/1 ... yes
10/3 ... yes
14/4 ... yes
4/5 ... yes
4/6 ... yes
14/7 ... yes
14/8 ... yes
22/9 ... yes
22/10 ... yes
22/11 ... yes
15/12 ... yes
22/13 ... yes
15/14 ... yes
22/15 ... yes
14/16 ... yes
10/17 ... yes
22/20 ... yes
14/21 ... yes
14/22 ... yes
22/23 ... yes
18/24 ... yes
18/25 ... yes
11/26 ... yes
21/27 ... yes
11/29 ... yes
8/30 ... yes
14/31 ... yes
14/32 ... yes
11/33 ... yes
21/35 ... yes
14/36 ... yes
8/37 ... yes
24/38 ... yes
27/39 ... yes
21/40 ... yes
28/41 ... yes
31/42 ... yes
33/43 ... yes
33/45 ... yes
31/46 ... yes
33/47 ... yes
37/49 ... yes
37/50 ... yes
38/51 ... yes
11/52 ... yes
24/53 ... yes
33/54 ... yes
21/55 ... yes
39/56 ... yes
8/57 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.3)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.11.1)
Active users: 18
Checking GitLab ... Finished