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,