Ceph - mgr prometheus pluging cotain stripped/incomplete ipv6 address

Solution Verified - Updated -

Issue

When IPv6 is being used the Prometheus metrics does not get the IP correctly, only part if IP until first semicolon character is being showed for 'cluster_addr' and 'public_addr':

# curl --silent http://localhost:9283/metrics | grep ceph_osd_metadata{
ceph_osd_metadata{back_iface="eth1",ceph_daemon="osd.0",cluster_addr="fe80",device_class="hdd",front_iface="eth0",hostname="osds-2.dashtst.lab.upshift.rdu2.redhat.com",objectstore="bluestore",public_addr="fe80",ceph_version="ceph version 14.2.11-95.el8cp (1d6087ae858e7c8e72fe7390c3522c7e0d951240) nautilus (stable)"} 1.0

# curl --silent http://localhost:9283/metrics | grep ceph_mon_metadata{
ceph_mon_metadata{ceph_daemon="mon.mons-2",hostname="mons-2.dashtst.lab.upshift.rdu2.redhat.com",public_addr="fe80",rank="0",ceph_version="ceph version 14.2.11-95.el8cp (1d6087ae858e7c8e72fe7390c3522c7e0d951240) nautilus (stable)"} 1.0

Environment

Red Hat Ceph Storage 4 - 14.2.11-139 and lower

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content