Project

General

Profile

Actions

Bug #22149

closed

Can not set custom port for prometheus exporter

Added by Vladimir Apostolov over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
prometheus module
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Step to reproduce:
ceph config-key set mgr/prometheus/server_port 8283
systemctl restart

Expected result:
tcp6 0 0 :::8283 :::* LISTEN 46506/ceph-mgr

Actual result:
Port doesnt liseten

Additional info:
ceph config-key dump {
...
"mgr/prometheus/server_port": "8283"
}

journalctl log:
ноя 17 15:20:51 ceph01 ceph-mgr46360: File "/usr/lib/ceph/mgr/prometheus/module.py", line 250, in serve
ноя 17 15:20:51 ceph01 ceph-mgr46360: cherrypy.engine.start()
ноя 17 15:20:51 ceph01 ceph-mgr46360: File "/usr/lib/python2.7/dist-packages/cherrypy/process/wspbus.py", line 258, in start
ноя 17 15:20:51 ceph01 ceph-mgr46360: raise e_info
ноя 17 15:20:51 ceph01 ceph-mgr46360: ChannelFailures: TypeError('an integer is required',)

if i change in
/usr/lib/ceph/mgr/prometheus/module.py (line 246):
'server.socket_port': server_port,
to
'server.socket_port': int(server_port),
all works fine

Actions #1

Updated by John Spray over 6 years ago

  • Tracker changed from Bug to Backport
  • Status changed from New to Resolved
  • Release set to luminous

This was fixed in master here: https://github.com/ceph/ceph/pull/17746, and is also on the luminous branch (it didn't have a ticket originally so a bit hard to look up).

The fix will be in v12.2.2

Actions #2

Updated by John Spray over 6 years ago

  • Tracker changed from Backport to Bug
  • % Done set to 0
  • Regression set to No
  • Severity set to 3 - minor
Actions #3

Updated by John Spray over 6 years ago

  • Category set to prometheus module
Actions

Also available in: Atom PDF