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