@@ -11,6 +11,7 @@ import (
1111 "github.com/stretchr/testify/require"
1212 "google.golang.org/grpc"
1313
14+ "github.com/smartcontractkit/chainlink-common/pkg/beholder"
1415 "github.com/smartcontractkit/chainlink-common/pkg/config"
1516 "github.com/smartcontractkit/chainlink-common/pkg/logger"
1617)
@@ -214,7 +215,7 @@ var envCfgFull = EnvConfig{
214215 TelemetryEmitterExportMaxBatchSize : 100 ,
215216 TelemetryEmitterMaxQueueSize : 1000 ,
216217 TelemetryLogStreamingEnabled : false ,
217- TelemetryMetricCardinalityLimit : new (100000 ),
218+ TelemetryMetricCardinalityLimit : new (beholder. DefaultMetricCardinalityLimit ),
218219 TelemetryPrometheusBridgeEnabled : true ,
219220 TelemetryPrometheusBridgePrefixes : []string {"foo" , "bar" },
220221 MeterRecordsEnabled : true ,
@@ -288,7 +289,7 @@ func TestEnvConfig_AsCmdEnv(t *testing.T) {
288289 assert .Equal (t , "100" , got [envTelemetryEmitterExportMaxBatchSize ])
289290 assert .Equal (t , "1000" , got [envTelemetryEmitterMaxQueueSize ])
290291 assert .Equal (t , "false" , got [envTelemetryLogStreamingEnabled ])
291- assert .Equal (t , "100000" , got [envTelemetryMetricCardinalityLimit ])
292+ assert .Equal (t , strconv . Itoa ( beholder . DefaultMetricCardinalityLimit ) , got [envTelemetryMetricCardinalityLimit ])
292293 assert .Equal (t , "true" , got [envTelemetryPrometheusBridgeEnabled ])
293294 assert .Equal (t , "foo,bar" , got [envTelemetryPrometheusBridgePrefixes ])
294295 assert .Equal (t , "true" , got [envMeterRecordsEnabled ])
0 commit comments