From e59b70b286228fdb81a18ae7b36a04496309340b Mon Sep 17 00:00:00 2001 From: Marie JONES <14836007+marie-j@users.noreply.github.com> Date: Thu, 15 Jan 2026 17:53:40 +0100 Subject: [PATCH] fix(metrics): add CNAME to known record types --- controller/metrics_test.go | 2 +- endpoint/endpoint.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/metrics_test.go b/controller/metrics_test.go index 313cd8977c..8f4c399064 100644 --- a/controller/metrics_test.go +++ b/controller/metrics_test.go @@ -367,7 +367,7 @@ func TestGaugeMetricsWithMixedRecords(t *testing.T) { testutils.TestHelperVerifyMetricsGaugeVectorWithLabels(t, 534, sourceRecords.Gauge, map[string]string{"record_type": "a"}) testutils.TestHelperVerifyMetricsGaugeVectorWithLabels(t, 324, sourceRecords.Gauge, map[string]string{"record_type": "aaaa"}) - testutils.TestHelperVerifyMetricsGaugeVectorWithLabels(t, 0, sourceRecords.Gauge, map[string]string{"record_type": "cname"}) + testutils.TestHelperVerifyMetricsGaugeVectorWithLabels(t, 2, sourceRecords.Gauge, map[string]string{"record_type": "cname"}) testutils.TestHelperVerifyMetricsGaugeVectorWithLabels(t, 11, sourceRecords.Gauge, map[string]string{"record_type": "srv"}) testutils.TestHelperVerifyMetricsGaugeVectorWithLabels(t, 5334, registryRecords.Gauge, map[string]string{"record_type": "a"}) diff --git a/endpoint/endpoint.go b/endpoint/endpoint.go index 11870b3fc4..ed6b09d6b4 100644 --- a/endpoint/endpoint.go +++ b/endpoint/endpoint.go @@ -54,6 +54,7 @@ var ( KnownRecordTypes = []string{ RecordTypeA, RecordTypeAAAA, + RecordTypeCNAME, RecordTypeTXT, RecordTypeSRV, RecordTypeNS,