From 8f0a491eef9fc70fe3002b197df23b0ed469bd41 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 7 Nov 2023 14:30:09 +0000 Subject: [PATCH] use production write url Replace localhost with production URL. Signed-off-by: Petr Vobornik --- config/config.go | 2 +- config/config_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 8c29ec4a8fe96e8c67be7a219c113a490530845c..bda26d977acd60bf8b75490facaa3560f2aa233c 100644 --- a/config/config.go +++ b/config/config.go @@ -11,7 +11,7 @@ import ( const ( DefaultConfigPath = "/etc/host-metering.conf" - DefaultWriteUrl = "http://localhost:9090/api/v1/write" + DefaultWriteUrl = "https://cert.console.redhat.com/api/rhel-telemetry/v1/receive" DefaultWriteInterval = 600 * time.Second DefaultCertPath = "/etc/pki/consumer/cert.pem" DefaultKeyPath = "/etc/pki/consumer/key.pem" diff --git a/config/config_test.go b/config/config_test.go index 0ef20552b34bbb1a23ecbf0d89e2989e937334b7..b258c82d3f398c3629a7eb92bb6a34993ec8c6ca 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -12,7 +12,7 @@ func TestDefaultConfig(t *testing.T) { // Define the expected defaults. expectedCfg := "Config:\n" + - "| WriteUrl: http://localhost:9090/api/v1/write\n" + + "| WriteUrl: https://cert.console.redhat.com/api/rhel-telemetry/v1/receive\n" + "| WriteIntervalSec: 600\n" + "| HostCertPath: /etc/pki/consumer/cert.pem\n" + "| HostCertKeyPath: /etc/pki/consumer/key.pem\n" + -- 2.41.0