Project

General

Profile

Actions

Bug #64965

open

Dynamic prometheus configuration uses hostname instead of IP address

Added by Josias Montag about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cephadm/monitoring
Target version:
-
% Done:

0%

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

Description

Starting with Ceph Reef our stats on the dashboard stopped working. We got the error: `The mgr/prometheus module at storage1:9283 is unreachable.`. Which is clear because the local hostname cannot be resolved from other hosts and it should use the internal IP instead.

The underlaying problem is that it uses the hostname instead of the IP address in `prometheus_sd_config`. All other SD configs use the IP address and they do work fine.

Problem is in this line: https://github.com/ceph/ceph/blob/main/src/pybind/mgr/cephadm/service_discovery.py#L178

Bug introduced by "mgr/cephadm: adding dynamic prometheus configuration based on http_sd_config" https://github.com/ceph/ceph/pull/46400

No data to display

Actions

Also available in: Atom PDF