From 0f310c8c59f4e1ef1d64f0f888d9a7345b5c8df6 Mon Sep 17 00:00:00 2001 From: Justin Cichra Date: Tue, 29 Apr 2025 14:34:25 -0400 Subject: [PATCH] exporter: add name to containerPort Named containerPort is a useful feature when generating dynamic scrape targets with prometheus. This makes it clear that the containerPort is intended for metrics scraping. The name matches that which is on the mgr deployment. Signed-off-by: Justin Cichra (cherry picked from commit 12c36e9472e726f84d7080eeaa63592c0142ab8c) --- pkg/operator/ceph/cluster/nodedaemon/exporter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/operator/ceph/cluster/nodedaemon/exporter.go b/pkg/operator/ceph/cluster/nodedaemon/exporter.go index 6cfda129f..987a49d43 100644 --- a/pkg/operator/ceph/cluster/nodedaemon/exporter.go +++ b/pkg/operator/ceph/cluster/nodedaemon/exporter.go @@ -196,6 +196,7 @@ func getCephExporterDaemonContainer(cephCluster cephv1.CephCluster, cephVersion } containerPort := corev1.ContainerPort{ + Name: "http-metrics", ContainerPort: int32(DefaultMetricsPort), Protocol: corev1.ProtocolTCP, }