Ceph - access to prometheus

Hello,

I want to monitor ceph. Ceph is installed as rook-ceph - inside kubernetes.

I provided nodeport service which forwards traffic to mgr pod, prometheus is enabled.

I can connect port, and obtian metrics


[stor2rrd@stor2rrd ~]$ curl 10.32.10.46:30283

<!DOCTYPE html>

<html>

  <head><title>Ceph Exporter</title></head>

  <body>

    <h1>Ceph Exporter</h1>

    <p><a href='/metrics'>Metrics</a></p>

  </body>

</html>[stor2rrd@stor2rrd ~]$ curl 10.32.10.46:30283/metrics | head

 % Total  % Received % Xferd Average Speed  Time  Time   Time Current

                 Dload Upload  Total  Spent  Left Speed

 0   0  0   0  0   0   0   0 --:--:-- --:--:-- --:--:--   0

# HELP ceph_health_status Cluster health status

# TYPE ceph_health_status untyped

ceph_health_status 0.0

# HELP ceph_mon_quorum_status Monitors in quorum

# TYPE ceph_mon_quorum_status gauge

ceph_mon_quorum_status{ceph_daemon="mon.f"} 1.0

ceph_mon_quorum_status{ceph_daemon="mon.g"} 1.0

ceph_mon_quorum_status{ceph_daemon="mon.h"} 1.0


But when I want to set ceph monitoring I receive:

API authorization: NOK

ERROR: No ip address with connectable Prometheus.


How to troubleshoot this?

Sign In or Register to comment.