gitlab_monitor_exporter chef recipe not available in 8.17.0
Summary
According to http://docs.gitlab.com/ce/administration/monitoring/prometheus/gitlab_monitor_exporter.html
gitlab_monitor_exporter
should be available in GitLab Community Edition 8.17.0 but it seems that the corresponding chef recipe has not been included.
Steps to reproduce
In file /etc/gitlab/gitlab.rb
, add
gitlab_monitor_exporter['enable'] = true
Then run gitlab-ctl reconfigure
You will receive the following error message:
root@my_loving_gitlab_srv:~# gitlab-ctl reconfigure
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
- package (0.0.0)
- gitlab (0.0.1)
- runit (0.14.2)
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb
================================================================================
NoMethodError
-------------
undefined method `[]=' for nil:NilClass
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:21:in `from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file'
Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:
14: # See the License for the specific language governing permissions and
15: # limitations under the License.
16: #
17:
18: Gitlab[:node] = node
19:
20: if File.exists?('/etc/gitlab/gitlab.rb')
21>> Gitlab.from_file('/etc/gitlab/gitlab.rb')
22: end
23:
24: node.consume_attributes(Gitlab.generate_config(node['fqdn']))
25:
Platform:
---------
x86_64-linux
Running handlers:
Running handlers complete
Chef Client failed. 0 resources updated in 01 seconds
What is the current bug behavior?
What is the expected correct behavior?
I should see that my modification has been applied :-)
Relevant logs and/or screenshots
See "Steps to reproduce"
Output of checks
No trace of corresponding chef recipe:
root@my_loving_gitlab_srv:~# ll /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/*export*
-rw------- 1 root root 737 Jan 22 22:01 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/node-exporter_disable.rb
-rw------- 1 root root 1591 Jan 22 22:01 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/node-exporter.rb
-rw------- 1 root root 742 Feb 23 13:26 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/postgres-exporter_disable.rb
-rw------- 1 root root 1492 Feb 23 13:26 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/postgres-exporter.rb
-rw------- 1 root root 739 Feb 23 13:26 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/redis-exporter_disable.rb
-rw------- 1 root root 1224 Feb 23 13:26 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/redis-exporter.rb
Results of GitLab environment info
root@my_loving_gitlab_srv:~# gitlab-rake gitlab:env:info
System information
System: Debian 7.11
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
Sidekiq Version:4.2.7
GitLab information
Version: 8.17.0
Revision: 77254ab
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://my_loving_gitlab_srv:9443
HTTP Clone URL: https://my_loving_gitlab_srv:9443/some-group/some-project.git
SSH Clone URL: git@my_loving_gitlab_srv:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 4.1.1
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
root@my_loving_gitlab_srv:~# gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 4.1.1 ? ... OK (4.1.1)
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: ...
19/1 ... ok
27/9 ... ok
27/12 ... ok
27/14 ... ok
27/16 ... ok
27/17 ... ok
27/18 ... ok
27/24 ... ok
10/26 ... ok
15/33 ... ok
10/34 ... ok
27/35 ... ok
15/36 ... ok
10/38 ... ok
15/39 ... ok
15/41 ... ok
27/42 ... ok
27/44 ... ok
32/45 ... ok
32/47 ... ok
32/48 ... ok
32/50 ... ok
32/52 ... ok
27/53 ... ok
15/55 ... ok
16/59 ... repository is empty
16/61 ... repository is empty
27/62 ... ok
27/64 ... ok
27/68 ... ok
34/69 ... ok
27/70 ... ok
27/71 ... ok
21/73 ... ok
34/74 ... ok
2/76 ... ok
10/77 ... ok
27/80 ... ok
34/81 ... ok
34/82 ... ok
43/85 ... ok
43/86 ... ok
43/89 ... repository is empty
27/90 ... ok
27/91 ... ok
27/92 ... ok
43/93 ... ok
34/94 ... ok
34/95 ... ok
34/96 ... ok
34/97 ... ok
34/98 ... ok
34/99 ... ok
56/101 ... ok
43/102 ... ok
34/103 ... ok
43/104 ... ok
43/105 ... ok
43/106 ... ok
43/108 ... ok
27/110 ... ok
43/111 ... ok
27/112 ... ok
15/113 ... ok
57/114 ... ok
34/115 ... ok
34/116 ... ok
27/118 ... ok
27/119 ... ok
27/120 ... repository is empty
16/121 ... ok
43/122 ... repository is empty
43/123 ... ok
34/124 ... ok
56/125 ... ok
10/126 ... repository is empty
34/128 ... ok
27/129 ... ok
56/131 ... ok
19/133 ... ok
16/134 ... repository is empty
66/135 ... ok
66/136 ... ok
60/138 ... ok
66/139 ... ok
63/148 ... repository is empty
63/149 ... ok
63/150 ... ok
63/151 ... ok
63/152 ... ok
46/153 ... ok
66/154 ... ok
10/155 ... ok
10/156 ... ok
10/157 ... ok
10/158 ... ok
60/159 ... ok
19/162 ... ok
34/163 ... ok
34/164 ... ok
34/165 ... ok
66/166 ... ok
19/168 ... ok
27/169 ... ok
27/170 ... ok
34/171 ... ok
34/173 ... ok
60/174 ... ok
60/176 ... repository is empty
60/178 ... ok
60/180 ... ok
66/183 ... ok
60/184 ... ok
66/185 ... ok
66/186 ... ok
43/188 ... ok
27/189 ... ok
60/190 ... ok
34/194 ... ok
10/195 ... ok
16/196 ... ok
66/197 ... ok
39/198 ... ok
34/199 ... ok
27/200 ... ok
34/201 ... ok
64/202 ... ok
64/203 ... ok
64/204 ... ok
64/205 ... ok
34/207 ... ok
63/208 ... ok
10/209 ... ok
60/210 ... ok
60/211 ... ok
60/212 ... ok
60/213 ... ok
60/214 ... ok
66/215 ... ok
34/216 ... ok
27/217 ... ok
60/218 ... ok
60/219 ... ok
66/220 ... ok
63/221 ... ok
66/222 ... ok
27/224 ... ok
34/225 ... ok
34/226 ... ok
27/227 ... ok
60/228 ... ok
2/229 ... ok
2/230 ... ok
2/231 ... ok
29/232 ... ok
60/233 ... ok
60/234 ... ok
60/235 ... ok
60/236 ... ok
66/238 ... ok
45/239 ... ok
60/240 ... ok
43/241 ... ok
3/242 ... ok
56/245 ... ok
3/246 ... ok
63/247 ... ok
43/249 ... ok
56/250 ... ok
60/252 ... ok
60/254 ... ok
60/255 ... ok
66/256 ... ok
66/257 ... ok
66/258 ... ok
60/259 ... ok
43/260 ... ok
60/261 ... repository is empty
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: ...
19/1 ... yes
27/9 ... yes
27/12 ... yes
27/14 ... yes
27/16 ... yes
27/17 ... yes
27/18 ... yes
27/24 ... yes
10/26 ... yes
15/33 ... yes
10/34 ... yes
27/35 ... yes
15/36 ... yes
10/38 ... yes
15/39 ... yes
15/41 ... yes
27/42 ... yes
27/44 ... yes
32/45 ... yes
32/47 ... yes
32/48 ... yes
32/50 ... yes
32/52 ... yes
27/53 ... yes
15/55 ... yes
16/59 ... yes
16/61 ... yes
27/62 ... yes
27/64 ... yes
27/68 ... yes
34/69 ... yes
27/70 ... yes
27/71 ... yes
21/73 ... yes
34/74 ... yes
2/76 ... yes
10/77 ... yes
27/80 ... yes
34/81 ... yes
34/82 ... yes
43/85 ... yes
43/86 ... yes
43/89 ... yes
27/90 ... yes
27/91 ... yes
27/92 ... yes
43/93 ... yes
34/94 ... yes
34/95 ... yes
34/96 ... yes
34/97 ... yes
34/98 ... yes
34/99 ... yes
56/101 ... yes
43/102 ... yes
34/103 ... yes
43/104 ... yes
43/105 ... yes
43/106 ... yes
43/108 ... yes
27/110 ... yes
43/111 ... yes
27/112 ... yes
15/113 ... yes
57/114 ... yes
34/115 ... yes
34/116 ... yes
27/118 ... yes
27/119 ... yes
27/120 ... yes
16/121 ... yes
43/122 ... yes
43/123 ... yes
34/124 ... yes
56/125 ... yes
10/126 ... yes
34/128 ... yes
27/129 ... yes
56/131 ... yes
19/133 ... yes
16/134 ... yes
66/135 ... yes
66/136 ... yes
60/138 ... yes
66/139 ... yes
63/148 ... yes
63/149 ... yes
63/150 ... yes
63/151 ... yes
63/152 ... yes
46/153 ... yes
66/154 ... yes
10/155 ... yes
10/156 ... yes
10/157 ... yes
10/158 ... yes
60/159 ... yes
19/162 ... yes
34/163 ... yes
34/164 ... yes
34/165 ... yes
66/166 ... yes
19/168 ... yes
27/169 ... yes
27/170 ... yes
34/171 ... yes
34/173 ... yes
60/174 ... yes
60/176 ... yes
60/178 ... yes
60/180 ... yes
66/183 ... yes
60/184 ... yes
66/185 ... yes
66/186 ... yes
43/188 ... yes
27/189 ... yes
60/190 ... yes
34/194 ... yes
10/195 ... yes
16/196 ... yes
66/197 ... yes
39/198 ... yes
34/199 ... yes
27/200 ... yes
34/201 ... yes
64/202 ... yes
64/203 ... yes
64/204 ... yes
64/205 ... yes
34/207 ... yes
63/208 ... yes
10/209 ... yes
60/210 ... yes
60/211 ... yes
60/212 ... yes
60/213 ... yes
60/214 ... yes
66/215 ... yes
34/216 ... yes
27/217 ... yes
60/218 ... yes
60/219 ... yes
66/220 ... yes
63/221 ... yes
66/222 ... yes
27/224 ... yes
34/225 ... yes
34/226 ... yes
27/227 ... yes
60/228 ... yes
2/229 ... yes
2/230 ... yes
2/231 ... yes
29/232 ... yes
60/233 ... yes
60/234 ... yes
60/235 ... yes
60/236 ... yes
66/238 ... yes
45/239 ... yes
60/240 ... yes
43/241 ... yes
3/242 ... yes
56/245 ... yes
3/246 ... yes
63/247 ... yes
43/249 ... yes
56/250 ... yes
60/252 ... yes
60/254 ... yes
60/255 ... yes
66/256 ... yes
66/257 ... yes
66/258 ... yes
60/259 ... yes
43/260 ... yes
60/261 ... 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.10.2)
Active users: 30
Checking GitLab ... Finished
Possible fixes
NA