Project

General

Profile

Actions

Bug #46846

closed

Prometheus metrics contain stripped/incomplete ipv6 address

Added by Daniƫl Vos over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Matthew Oliver
Category:
-
Target version:
-
% Done:

0%

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

Description

curl --silent http://localhost:9283/metrics | grep ceph_mon_metadata{
ceph_mon_metadata{ceph_daemon="mon.mon2",hostname="mon2.example.net",public_addr="[2001",rank="0",ceph_version="ceph version 15.2.4 (7447c15c6ff58d7fce91843b705a268a1917325c) octopus (stable)"} 1.0
ceph_mon_metadata{ceph_daemon="mon.mon3",hostname="mon3.example.net",public_addr="[2001",rank="1",ceph_version="ceph version 15.2.4 (7447c15c6ff58d7fce91843b705a268a1917325c) octopus (stable)"} 1.0
ceph_mon_metadata{ceph_daemon="mon.mon1",hostname="mon1.example.net",public_addr="[2001",rank="2",ceph_version="ceph version 15.2.4 (7447c15c6ff58d7fce91843b705a268a1917325c) octopus (stable)"} 1.0

The public_addr is stripped on the first semicolon.

Problem also exists on the `ceph_osd_metadata` metric for the `cluster_addr` label

ceph_osd_metadata{back_iface="bond-storage",ceph_daemon="osd.0",cluster_addr="[2001",device_class="ssd",front_iface="bond-mgmt",hostname="node1.example.net",objectstore="bluestore",public_addr="[2001",ceph_version="ceph version 15.2.4 (7447c15c6ff58d7fce91843b705a268a1917325c) octopus (stable)"} 1.0
ceph_osd_metadata{back_iface="bond-storage",ceph_daemon="osd.1",cluster_addr="[2001",device_class="ssd",front_iface="bond-mgmt",hostname="node1.example.net",objectstore="bluestore",public_addr="[2001",ceph_version="ceph version 15.2.4 (7447c15c6ff58d7fce91843b705a268a1917325c) octopus (stable)"} 1.0
ceph_osd_metadata{back_iface="bond-storage",ceph_daemon="osd.2",cluster_addr="[2001",device_class="ssd",front_iface="bond-mgmt",hostname="node1.example.net",objectstore="bluestore",public_addr="[2001",ceph_version="ceph version 15.2.4 (7447c15c6ff58d7fce91843b705a268a1917325c) octopus (stable)"} 1.0

Unfortunately I do not use the ganesha nfs/cephfs/rgw features of ceph but it would not surprise me if those metrics contained the same bug on an ipv6 cluster


Related issues 2 (0 open2 closed)

Copied to mgr - Backport #47281: nautilus: Prometheus metrics contain stripped/incomplete ipv6 addressResolvedKonstantin ShalyginActions
Copied to mgr - Backport #47282: octopus: Prometheus metrics contain stripped/incomplete ipv6 addressResolvedKonstantin ShalyginActions
Actions

Also available in: Atom PDF