From 8e5a78ae6362da17ab1b3f0523eb1d0a26b7032b Mon Sep 17 00:00:00 2001 From: Clinton Blackburn Date: Mon, 15 Jan 2024 22:49:27 -0800 Subject: [PATCH] Namespaced VoriPOS attributes The usperted attributes pulled from provision values are now prefixed with voipos to better indicate these values come from VoriPOS devices. --- config.yml | 16 ++++++++-------- voripos-otel-collector.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config.yml b/config.yml index 9fbe0d5..5fe50f7 100644 --- a/config.yml +++ b/config.yml @@ -46,28 +46,28 @@ processors: - key: device.serial_number value: "${env:DEVICE_SERIAL_NUMBER}" action: insert - - key: voripos_otel_collector_version + - key: voripos.otel_collector_version value: "${env:VORIPOS_OTEL_COLLECTOR_VERSION}" action: upsert - - key: provisioned_environment + - key: voripos.environment value: "${env:VORIPOS_ENVIRONMENT}" action: upsert - - key: bannerID + - key: voripos.banner.id value: "${env:VORIPOS_BANNER_ID}" action: upsert - - key: bannerName + - key: voripos.banner.name value: "${env:VORIPOS_BANNER_NAME}" action: upsert - - key: storeID + - key: voripos.store.id value: "${env:VORIPOS_STORE_ID}" action: upsert - - key: storeName + - key: voripos.store.name value: "${env:VORIPOS_STORE_NAME}" action: upsert - - key: laneID + - key: voripos.lane.id value: "${env:VORIPOS_LANE_ID}" action: upsert - - key: laneName + - key: voripos.lane.name value: "${env:VORIPOS_LANE_NAME}" action: upsert memory_limiter: diff --git a/voripos-otel-collector.sh b/voripos-otel-collector.sh index 23a8d40..1230be7 100755 --- a/voripos-otel-collector.sh +++ b/voripos-otel-collector.sh @@ -3,7 +3,7 @@ # This is needed to locate the otelcol-contrib executable export PATH="/opt/homebrew/bin:$PATH" -export VORIPOS_OTEL_COLLECTOR_VERSION=0.4.1 +export VORIPOS_OTEL_COLLECTOR_VERSION=0.4.2 DEVICE_SERIAL_NUMBER=$(ioreg -c IOPlatformExpertDevice -d 2 | awk -F\" '/IOPlatformSerialNumber/{print $(NF-1)}') OIDC_CLIENT_ID=