From 57c6c28720eef194aa693406e270d54362f25a53 Mon Sep 17 00:00:00 2001 From: Francisco Valente Castro <1435136+franciscovalentecastro@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:16:31 -0400 Subject: [PATCH] healthchecks : Improve self logs processing and healthchecks logs. (#1674) Co-authored-by: Jeff Erbrecht <89024676+jefferbrecht@users.noreply.github.com> --- confgenerator/self_logs.go | 117 ++++++++---------- ...a => 0f15dbe303dc7122d43443c9a4c31632.lua} | 10 -- .../golden/linux-gpu/fluent_bit_main.conf | 6 +- ...a => 0f15dbe303dc7122d43443c9a4c31632.lua} | 10 -- .../golden/linux/fluent_bit_main.conf | 6 +- ...a => 0f15dbe303dc7122d43443c9a4c31632.lua} | 10 -- .../golden/windows-2012/fluent_bit_main.conf | 6 +- ...a => 0f15dbe303dc7122d43443c9a4c31632.lua} | 10 -- .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../linux-dataproc/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../builtin/golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux-gpu/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/linux/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows-2012/fluent_bit_main.conf | 6 +- .../0f15dbe303dc7122d43443c9a4c31632.lua | 28 +++++ .../68d6a3a0e8edf37868e1bf94adc737f4.lua | 38 ------ .../golden/windows/fluent_bit_main.conf | 6 +- integration_test/ops_agent_test/main_test.go | 24 +++- internal/healthchecks/error.go | 36 ++++++ internal/logs/logs.go | 24 +--- 2043 files changed, 21112 insertions(+), 27897 deletions(-) rename confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/{68d6a3a0e8edf37868e1bf94adc737f4.lua => 0f15dbe303dc7122d43443c9a4c31632.lua} (59%) rename confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/{68d6a3a0e8edf37868e1bf94adc737f4.lua => 0f15dbe303dc7122d43443c9a4c31632.lua} (59%) rename confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/{68d6a3a0e8edf37868e1bf94adc737f4.lua => 0f15dbe303dc7122d43443c9a4c31632.lua} (59%) rename confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/{68d6a3a0e8edf37868e1bf94adc737f4.lua => 0f15dbe303dc7122d43443c9a4c31632.lua} (59%) create mode 100644 confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/builtin/golden/linux-dataproc/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/builtin/golden/linux-dataproc/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/builtin/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/builtin/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/builtin/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/builtin/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/builtin/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/builtin/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/builtin/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/builtin/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_order/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_order/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_order/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_order/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua create mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua delete mode 100644 confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua diff --git a/confgenerator/self_logs.go b/confgenerator/self_logs.go index 94ea1f57d8..dc59d8d596 100644 --- a/confgenerator/self_logs.go +++ b/confgenerator/self_logs.go @@ -21,6 +21,7 @@ import ( "strings" "github.com/GoogleCloudPlatform/ops-agent/confgenerator/fluentbit" + "github.com/GoogleCloudPlatform/ops-agent/internal/healthchecks" "github.com/GoogleCloudPlatform/ops-agent/internal/logs" "github.com/GoogleCloudPlatform/ops-agent/internal/platform" "github.com/GoogleCloudPlatform/ops-agent/internal/version" @@ -32,15 +33,12 @@ var ( ) const ( - opsAgentLogsMatch string = "ops-agent-*" - fluentBitSelfLogsTag string = "ops-agent-fluent-bit" - healthLogsTag string = "ops-agent-health" - severityKey string = "logging.googleapis.com/severity" - sourceLocationKey string = "logging.googleapis.com/sourceLocation" - agentVersionKey string = "agent.googleapis.com/health/agentVersion" - agentKindKey string = "agent.googleapis.com/health/agentKind" - schemaVersionKey string = "agent.googleapis.com/health/schemaVersion" - troubleshootFindInfoURL string = "https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" + opsAgentLogsMatch string = "ops-agent-*" + fluentBitSelfLogsTag string = "ops-agent-fluent-bit" + healthLogsTag string = "ops-agent-health" + agentVersionKey string = "agent.googleapis.com/health/agentVersion" + agentKindKey string = "agent.googleapis.com/health/agentKind" + schemaVersionKey string = "agent.googleapis.com/health/schemaVersion" ) func fluentbitSelfLogsPath(p platform.Platform) string { @@ -55,7 +53,7 @@ func healthChecksLogsPath() string { return path.Join("${logs_dir}", "health-checks.log") } -func generateHealthLoggingPingComponent(ctx context.Context) []fluentbit.Component { +func generateInputHealthLoggingPingComponent(ctx context.Context) []fluentbit.Component { return []fluentbit.Component{ { Kind: "INPUT", @@ -72,7 +70,7 @@ func generateHealthLoggingPingComponent(ctx context.Context) []fluentbit.Compone // This method creates a file input for the `health-checks.log` file, a json parser for the // structured logs and a grep filter to avoid ingesting previous content of the file. -func generateHealthChecksLogsComponents(ctx context.Context) []fluentbit.Component { +func generateInputHealthChecksLogsComponents(ctx context.Context) []fluentbit.Component { out := make([]fluentbit.Component, 0) out = append(out, LoggingReceiverFilesMixin{ IncludePaths: []string{healthChecksLogsPath()}, @@ -104,7 +102,7 @@ func generateHealthChecksLogsComponents(ctx context.Context) []fluentbit.Compone // This method creates a file input for the `logging-module.log` file, a regex parser for the // fluent-bit self logs and a translator of severity to the logging api format. -func generateFluentBitSelfLogsComponents(ctx context.Context) []fluentbit.Component { +func generateInputFluentBitSelfLogsComponents(ctx context.Context, logLevel string) []fluentbit.Component { out := make([]fluentbit.Component, 0) out = append(out, LoggingReceiverFilesMixin{ IncludePaths: []string{fluentbitSelfLogsPath(platform.FromContext(ctx))}, @@ -123,32 +121,27 @@ func generateFluentBitSelfLogsComponents(ctx context.Context) []fluentbit.Compon }, }, }.Components(ctx, fluentBitSelfLogsTag, "fluent-bit-self-log-regex-parsing")...) + // Disables sending fluent-bit debug logs to Cloud Logging due to endless spam. + // TODO: Remove when b/272779619 is fixed. + if logLevel == "debug" { + out = append(out, []fluentbit.Component{ + { + Kind: "FILTER", + Config: map[string]string{ + "Name": "grep", + "Match": fluentBitSelfLogsTag, + "Exclude": "severity debug", + }, + }, + }...) + } return out } -type selfLogTranslationEntry struct { - regexMatch string - message string - code string -} - -var selfLogTranslationList = []selfLogTranslationEntry{ - { - regexMatch: `\[error\]\s\[lib\]\sbackend\sfailed`, - message: fmt.Sprintf("Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: %s", troubleshootFindInfoURL), - code: "LogPipelineErr", - }, - { - regexMatch: `\[error\]\s\[parser\]\scannot\sparse`, - message: fmt.Sprintf("Ops Agent failed to parse logs, Code: LogParseErr, Documentation: %s", troubleshootFindInfoURL), - code: "LogParseErr", - }, -} - -func generateSelfLogsSamplingComponents(ctx context.Context) []fluentbit.Component { +func generateFilterSelfLogsSamplingComponents(ctx context.Context) []fluentbit.Component { out := make([]fluentbit.Component, 0) - for _, m := range selfLogTranslationList { + for _, m := range healthchecks.FluentBitSelfLogTranslationList { // This filter samples specific fluent-bit logs by matching with regex and re-emits // an `ops-agent-health` log. out = append(out, fluentbit.Component{ @@ -156,22 +149,18 @@ func generateSelfLogsSamplingComponents(ctx context.Context) []fluentbit.Compone Config: map[string]string{ "Name": "rewrite_tag", "Match": fluentBitSelfLogsTag, - "Rule": fmt.Sprintf(`message %s %s true`, m.regexMatch, healthLogsTag), + "Rule": fmt.Sprintf(`message %s %s true`, m.RegexMatch, healthLogsTag), }, }) - // This filter sets the appropiate health code to the previously sampled logs. The `code` is also - // set to the `message` field for later translation in the pipeline. - // The current fluent-bit submodule doesn't accept whitespaces in the `Set` values, so `code` is - // used as a placeholder. This can be updated when the fix arrives to the current fluent-bit submodule - // `https://github.com/fluent/fluent-bit/issues/4286`. + // This filter sets the appropiate health code and message to the previously sampled logs. out = append(out, fluentbit.Component{ Kind: "FILTER", OrderedConfig: [][2]string{ {"Name", "modify"}, {"Match", healthLogsTag}, - {"Condition", fmt.Sprintf(`Key_value_matches message %s`, m.regexMatch)}, - {"Set", fmt.Sprintf(`message %s`, m.code)}, - {"Set", fmt.Sprintf(`code %s`, m.code)}, + {"Condition", fmt.Sprintf(`Key_value_matches message %s`, m.RegexMatch)}, + {"Set", fmt.Sprintf(`code %s`, m.Code)}, + {"Set", fmt.Sprintf(`message "%s"`, m.Message)}, }, }) } @@ -181,14 +170,7 @@ func generateSelfLogsSamplingComponents(ctx context.Context) []fluentbit.Compone // This method creates a component that enforces the `Structured Health Logs` format to // all `ops-agent-health` logs. It sets `agentKind`, `agentVersion` and `schemaVersion`. -// It also translates `code` to the rich text message from the `selfLogTranslationList`. -func generateStructuredHealthLogsComponents(ctx context.Context) []fluentbit.Component { - // Convert translation list to map. - mapMessageFromCode := make(map[string]string) - for _, m := range selfLogTranslationList { - mapMessageFromCode[m.code] = m.message - } - +func generateFilterStructuredHealthLogsComponents(ctx context.Context) []fluentbit.Component { return LoggingProcessorModifyFields{ Fields: map[string]*ModifyField{ fmt.Sprintf(`labels."%s"`, agentKindKey): { @@ -200,16 +182,12 @@ func generateStructuredHealthLogsComponents(ctx context.Context) []fluentbit.Com fmt.Sprintf(`labels."%s"`, schemaVersionKey): { StaticValue: &schemaVersion, }, - "jsonPayload.message": { - MapValues: mapMessageFromCode, - MapValuesExclusive: false, - }, }, }.Components(ctx, healthLogsTag, "set-structured-health-logs") } -// This method processes all self logs to set the fields correctly before reaching the output plugin. -func generateSelfLogsProcessingComponents(ctx context.Context) []fluentbit.Component { +// This method processes all self logs to set the severity field correctly before reaching the output plugin. +func generateFilterMapSeverityFieldComponent(ctx context.Context) []fluentbit.Component { return LoggingProcessorModifyFields{ Fields: map[string]*ModifyField{ "severity": { @@ -226,20 +204,25 @@ func generateSelfLogsProcessingComponents(ctx context.Context) []fluentbit.Compo }.Components(ctx, opsAgentLogsMatch, "self-logs-processing") } -func (uc *UnifiedConfig) generateSelfLogsComponents(ctx context.Context, userAgent string) []fluentbit.Component { - out := make([]fluentbit.Component, 0) - out = append(out, generateHealthLoggingPingComponent(ctx)...) - out = append(out, generateFluentBitSelfLogsComponents(ctx)...) - out = append(out, generateHealthChecksLogsComponents(ctx)...) - out = append(out, generateSelfLogsSamplingComponents(ctx)...) - out = append(out, generateStructuredHealthLogsComponents(ctx)...) - out = append(out, generateSelfLogsProcessingComponents(ctx)...) - +// This method creates a component that outputs all ops-agent self logs to Cloud Logging. +func generateOutputSelfLogsComponent(ctx context.Context, userAgent string, ingestSelfLogs bool) fluentbit.Component { outputLogNames := []string{healthLogsTag} - if uc.Global.GetDefaultSelfLogFileCollection() { + if ingestSelfLogs { // Ingest fluent-bit logs to Cloud Logging if enabled. outputLogNames = append(outputLogNames, fluentBitSelfLogsTag) } - out = append(out, stackdriverOutputComponent(ctx, strings.Join(outputLogNames, "|"), userAgent, "", "")) + return stackdriverOutputComponent(ctx, strings.Join(outputLogNames, "|"), userAgent, "", "") +} + +func (uc *UnifiedConfig) generateSelfLogsComponents(ctx context.Context, userAgent string) []fluentbit.Component { + out := make([]fluentbit.Component, 0) + out = append(out, generateInputHealthLoggingPingComponent(ctx)...) + out = append(out, generateInputFluentBitSelfLogsComponents(ctx, uc.Logging.Service.LogLevel)...) + out = append(out, generateInputHealthChecksLogsComponents(ctx)...) + out = append(out, generateFilterSelfLogsSamplingComponents(ctx)...) + out = append(out, generateFilterStructuredHealthLogsComponents(ctx)...) + out = append(out, generateFilterMapSeverityFieldComponent(ctx)...) + out = append(out, generateOutputSelfLogsComponent(ctx, userAgent, uc.Global.GetDefaultSelfLogFileCollection())) + return out } diff --git a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua similarity index 59% rename from confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua rename to confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua index 16b933cb7d..dda27aee97 100644 --- a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -1,15 +1,5 @@ function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) local v = "ops-agent"; (function(value) if record["logging.googleapis.com/labels"] == nil diff --git a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua similarity index 59% rename from confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua rename to confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua index 16b933cb7d..dda27aee97 100644 --- a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -1,15 +1,5 @@ function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) local v = "ops-agent"; (function(value) if record["logging.googleapis.com/labels"] == nil diff --git a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua similarity index 59% rename from confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua rename to confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua index 16b933cb7d..dda27aee97 100644 --- a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -1,15 +1,5 @@ function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) local v = "ops-agent"; (function(value) if record["logging.googleapis.com/labels"] == nil diff --git a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/fluent_bit_main.conf index 8d06585f0c..eaea1724a9 100644 --- a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows-2012/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua similarity index 59% rename from confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua rename to confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua index 16b933cb7d..dda27aee97 100644 --- a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -1,15 +1,5 @@ function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) local v = "ops-agent"; (function(value) if record["logging.googleapis.com/labels"] == nil diff --git a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/fluent_bit_main.conf index 8d06585f0c..eaea1724a9 100644 --- a/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-backward_compatible_with_explicit_exporters/golden/windows/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/fluent_bit_main.conf index 92c2f2a9ca..8170b51efe 100644 --- a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux-gpu/fluent_bit_main.conf @@ -149,8 +149,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -161,14 +161,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/fluent_bit_main.conf index 92c2f2a9ca..8170b51efe 100644 --- a/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-custom_use_built_in_receivers/golden/linux/fluent_bit_main.conf @@ -149,8 +149,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -161,14 +161,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/fluent_bit_main.conf index 423b2f75a1..1c9d168000 100644 --- a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux-gpu/fluent_bit_main.conf @@ -198,8 +198,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -210,14 +210,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/fluent_bit_main.conf index 423b2f75a1..1c9d168000 100644 --- a/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-quoted_map_keys/golden/linux/fluent_bit_main.conf @@ -198,8 +198,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -210,14 +210,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/all-user_config_file_deleted/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/fluent_bit_main.conf b/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/fluent_bit_main.conf index b61b3bea8b..193473c619 100644 --- a/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/builtin/golden/linux-dataproc/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/builtin/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/builtin/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/builtin/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/builtin/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/builtin/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/builtin/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/builtin/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/builtin/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/builtin/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/builtin/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/builtin/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/builtin/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/builtin/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/builtin/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/builtin/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/builtin/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/builtin/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/builtin/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/builtin/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/builtin/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/builtin/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/builtin/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/builtin/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/builtin/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/builtin/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/builtin/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/builtin/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/builtin/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/builtin/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/builtin/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/builtin/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/builtin/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/builtin/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/builtin/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/builtin/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/builtin/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/builtin/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/builtin/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/builtin/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/builtin/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlecloudmonitoring/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_googlemanagedprometheus/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_grpcendpoint/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_multiple_pipelines/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/combined-receiver_otlp_no_traces/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-default-log-rotation_custom/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/fluent_bit_main.conf index ba857542a7..a8c635f587 100644 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/fluent_bit_main.conf index ba857542a7..a8c635f587 100644 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/fluent_bit_main.conf index 5a43fee3a1..5b3cdc4512 100644 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/fluent_bit_main.conf index 5a43fee3a1..5b3cdc4512 100644 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_false/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/global-service_default_self_log_file_collection_true/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/fluent_bit_main.conf index fc12704541..ec990ca764 100644 --- a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/fluent_bit_main.conf index fc12704541..ec990ca764 100644 --- a/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-custom_log_level/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/fluent_bit_main.conf index 5de90785ba..6000ecd849 100644 --- a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/fluent_bit_main.conf index 5de90785ba..6000ecd849 100644 --- a/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-custom_log_level/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/fluent_bit_main.conf index e6fd642343..9d767d886b 100644 --- a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux-gpu/fluent_bit_main.conf @@ -107,8 +107,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -119,14 +119,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/fluent_bit_main.conf index e6fd642343..9d767d886b 100644 --- a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/linux/fluent_bit_main.conf @@ -107,8 +107,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -119,14 +119,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/fluent_bit_main.conf index 72dfda1df1..a8cb802c02 100644 --- a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows-2012/fluent_bit_main.conf @@ -107,8 +107,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -119,14 +119,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/fluent_bit_main.conf index 72dfda1df1..a8cb802c02 100644 --- a/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-default_overrides_disable_all/golden/windows/fluent_bit_main.conf @@ -107,8 +107,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -119,14 +119,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/fluent_bit_main.conf index 6cd4d8bc3e..874cf3f970 100644 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/fluent_bit_main.conf @@ -221,8 +221,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -233,14 +233,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/fluent_bit_main.conf index 6cd4d8bc3e..874cf3f970 100644 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/fluent_bit_main.conf @@ -221,8 +221,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -233,14 +233,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf index 8b1671c8a7..3d3c8bf479 100644 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf @@ -221,8 +221,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -233,14 +233,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/fluent_bit_main.conf index 8b1671c8a7..3d3c8bf479 100644 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/fluent_bit_main.conf @@ -221,8 +221,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -233,14 +233,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/fluent_bit_main.conf index 598d16ec27..634272a86d 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux-gpu/fluent_bit_main.conf @@ -571,8 +571,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -583,14 +583,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/fluent_bit_main.conf index 598d16ec27..634272a86d 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/linux/fluent_bit_main.conf @@ -571,8 +571,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -583,14 +583,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/fluent_bit_main.conf index 4bf4fd5408..8b98ee6066 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows-2012/fluent_bit_main.conf @@ -613,8 +613,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -625,14 +625,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/fluent_bit_main.conf index 4bf4fd5408..8b98ee6066 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs/golden/windows/fluent_bit_main.conf @@ -613,8 +613,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -625,14 +625,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/fluent_bit_main.conf index 64ab8c4d9f..3064624a4f 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/fluent_bit_main.conf @@ -174,8 +174,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -186,14 +186,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/fluent_bit_main.conf index 64ab8c4d9f..3064624a4f 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/fluent_bit_main.conf @@ -174,8 +174,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -186,14 +186,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/fluent_bit_main.conf index f05de612ea..e1aaa37171 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/fluent_bit_main.conf index f05de612ea..e1aaa37171 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/fluent_bit_main.conf index 232ca0c57e..e504c2f5b1 100644 --- a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux-gpu/fluent_bit_main.conf @@ -155,8 +155,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -167,14 +167,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/fluent_bit_main.conf index 232ca0c57e..e504c2f5b1 100644 --- a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/linux/fluent_bit_main.conf @@ -155,8 +155,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -167,14 +167,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/fluent_bit_main.conf index 83ef14a510..1686f86fd4 100644 --- a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows-2012/fluent_bit_main.conf @@ -197,8 +197,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -209,14 +209,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/fluent_bit_main.conf index 83ef14a510..1686f86fd4 100644 --- a/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_modify_fields/golden/windows/fluent_bit_main.conf @@ -197,8 +197,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -209,14 +209,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/fluent_bit_main.conf index 8ca71c4c13..2f0da82362 100644 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/fluent_bit_main.conf @@ -246,8 +246,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -258,14 +258,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_order/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_order/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_order/golden/linux/fluent_bit_main.conf index 8ca71c4c13..2f0da82362 100644 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/linux/fluent_bit_main.conf @@ -246,8 +246,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -258,14 +258,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/fluent_bit_main.conf index 4e3300564e..a63f4b8502 100644 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/fluent_bit_main.conf @@ -288,8 +288,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -300,14 +300,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_order/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_order/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_order/golden/windows/fluent_bit_main.conf index 4e3300564e..a63f4b8502 100644 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/windows/fluent_bit_main.conf @@ -288,8 +288,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -300,14 +300,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/fluent_bit_main.conf index 34e1c8574c..c3d942d608 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/fluent_bit_main.conf @@ -259,8 +259,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -271,14 +271,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/fluent_bit_main.conf index 34e1c8574c..c3d942d608 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/fluent_bit_main.conf @@ -259,8 +259,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -271,14 +271,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/fluent_bit_main.conf index 55a3d38fe9..324b317b72 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/fluent_bit_main.conf @@ -259,8 +259,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -271,14 +271,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/fluent_bit_main.conf index 55a3d38fe9..324b317b72 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/fluent_bit_main.conf @@ -259,8 +259,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -271,14 +271,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/fluent_bit_main.conf index d3f6d112a8..46004c9148 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux-gpu/fluent_bit_main.conf @@ -156,8 +156,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -168,14 +168,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/fluent_bit_main.conf index d3f6d112a8..46004c9148 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/linux/fluent_bit_main.conf @@ -156,8 +156,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -168,14 +168,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/fluent_bit_main.conf index 5837524e20..0184defcba 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows-2012/fluent_bit_main.conf @@ -198,8 +198,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -210,14 +210,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/fluent_bit_main.conf index 5837524e20..0184defcba 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline/golden/windows/fluent_bit_main.conf @@ -198,8 +198,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -210,14 +210,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/fluent_bit_main.conf index ce6549cb0a..4aad03a776 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux-gpu/fluent_bit_main.conf @@ -150,8 +150,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -162,14 +162,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/fluent_bit_main.conf index ce6549cb0a..4aad03a776 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/linux/fluent_bit_main.conf @@ -150,8 +150,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -162,14 +162,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/fluent_bit_main.conf index 9cf4fbf155..963f481b1c 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows-2012/fluent_bit_main.conf @@ -192,8 +192,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -204,14 +204,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/fluent_bit_main.conf index 9cf4fbf155..963f481b1c 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_processor_not_in_use/golden/windows/fluent_bit_main.conf @@ -192,8 +192,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -204,14 +204,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/fluent_bit_main.conf index d3f6d112a8..46004c9148 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux-gpu/fluent_bit_main.conf @@ -156,8 +156,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -168,14 +168,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/fluent_bit_main.conf index d3f6d112a8..46004c9148 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/linux/fluent_bit_main.conf @@ -156,8 +156,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -168,14 +168,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/fluent_bit_main.conf index 5837524e20..0184defcba 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows-2012/fluent_bit_main.conf @@ -198,8 +198,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -210,14 +210,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/fluent_bit_main.conf index 5837524e20..0184defcba 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_languages/golden/windows/fluent_bit_main.conf @@ -198,8 +198,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -210,14 +210,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/fluent_bit_main.conf index 1bf40276c3..4459e743f4 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux-gpu/fluent_bit_main.conf @@ -212,8 +212,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -224,14 +224,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/fluent_bit_main.conf index 1bf40276c3..4459e743f4 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/linux/fluent_bit_main.conf @@ -212,8 +212,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -224,14 +224,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/fluent_bit_main.conf index b44dc8cee8..6dda0e9139 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows-2012/fluent_bit_main.conf @@ -254,8 +254,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -266,14 +266,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/fluent_bit_main.conf index b44dc8cee8..6dda0e9139 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_three_processors_same_language/golden/windows/fluent_bit_main.conf @@ -254,8 +254,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -266,14 +266,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/fluent_bit_main.conf index d3f6d112a8..46004c9148 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux-gpu/fluent_bit_main.conf @@ -156,8 +156,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -168,14 +168,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/fluent_bit_main.conf index d3f6d112a8..46004c9148 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/linux/fluent_bit_main.conf @@ -156,8 +156,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -168,14 +168,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/fluent_bit_main.conf index 5837524e20..0184defcba 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows-2012/fluent_bit_main.conf @@ -198,8 +198,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -210,14 +210,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/fluent_bit_main.conf index 5837524e20..0184defcba 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_languages/golden/windows/fluent_bit_main.conf @@ -198,8 +198,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -210,14 +210,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/fluent_bit_main.conf index 9b5c05b058..599fe6c1d3 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux-gpu/fluent_bit_main.conf @@ -184,8 +184,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -196,14 +196,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/fluent_bit_main.conf index 9b5c05b058..599fe6c1d3 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/linux/fluent_bit_main.conf @@ -184,8 +184,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -196,14 +196,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/fluent_bit_main.conf index 3ad0e327f3..d020665ffa 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows-2012/fluent_bit_main.conf @@ -226,8 +226,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -238,14 +238,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/fluent_bit_main.conf index 3ad0e327f3..d020665ffa 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_multiline_two_processors/golden/windows/fluent_bit_main.conf @@ -226,8 +226,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -238,14 +238,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/fluent_bit_main.conf index df8020a95e..12d86ea09b 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/fluent_bit_main.conf @@ -147,8 +147,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -159,14 +159,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/fluent_bit_main.conf index df8020a95e..12d86ea09b 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/fluent_bit_main.conf @@ -147,8 +147,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -159,14 +159,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/fluent_bit_main.conf index 3217ec267d..e6e91c3e40 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/fluent_bit_main.conf @@ -189,8 +189,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -201,14 +201,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/fluent_bit_main.conf index 3217ec267d..e6e91c3e40 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/fluent_bit_main.conf @@ -189,8 +189,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -201,14 +201,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/fluent_bit_main.conf index f59a4aa16e..b0c032e0c7 100644 --- a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux-gpu/fluent_bit_main.conf @@ -220,8 +220,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -232,14 +232,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/fluent_bit_main.conf index f59a4aa16e..b0c032e0c7 100644 --- a/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_apache/golden/linux/fluent_bit_main.conf @@ -220,8 +220,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -232,14 +232,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/fluent_bit_main.conf index ffdf46dde5..72420d2698 100644 --- a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows-2012/fluent_bit_main.conf @@ -262,8 +262,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -274,14 +274,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/fluent_bit_main.conf index ffdf46dde5..72420d2698 100644 --- a/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_apache/golden/windows/fluent_bit_main.conf @@ -262,8 +262,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -274,14 +274,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/fluent_bit_main.conf index a594cdc799..19bff3029d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux-gpu/fluent_bit_main.conf @@ -396,8 +396,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -408,14 +408,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/fluent_bit_main.conf index a594cdc799..19bff3029d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/linux/fluent_bit_main.conf @@ -396,8 +396,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -408,14 +408,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/fluent_bit_main.conf index ca3f873184..c5e8132df0 100644 --- a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows-2012/fluent_bit_main.conf @@ -438,8 +438,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -450,14 +450,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/fluent_bit_main.conf index ca3f873184..c5e8132df0 100644 --- a/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_apache_custom/golden/windows/fluent_bit_main.conf @@ -438,8 +438,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -450,14 +450,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/fluent_bit_main.conf index c8b62c6d5a..4802d93c5d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux-gpu/fluent_bit_main.conf @@ -285,8 +285,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -297,14 +297,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/fluent_bit_main.conf index c8b62c6d5a..4802d93c5d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/linux/fluent_bit_main.conf @@ -285,8 +285,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -297,14 +297,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/fluent_bit_main.conf index ff42b6ba3d..7404f45c20 100644 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows-2012/fluent_bit_main.conf @@ -327,8 +327,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -339,14 +339,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/fluent_bit_main.conf index ff42b6ba3d..7404f45c20 100644 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra/golden/windows/fluent_bit_main.conf @@ -327,8 +327,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -339,14 +339,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/fluent_bit_main.conf index bc5bd94afe..7f9a492e5a 100644 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux-gpu/fluent_bit_main.conf @@ -775,8 +775,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -787,14 +787,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/fluent_bit_main.conf index bc5bd94afe..7f9a492e5a 100644 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/linux/fluent_bit_main.conf @@ -775,8 +775,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -787,14 +787,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/fluent_bit_main.conf index 5a2221cbde..3d85b7d34e 100644 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows-2012/fluent_bit_main.conf @@ -817,8 +817,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -829,14 +829,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/fluent_bit_main.conf index 5a2221cbde..3d85b7d34e 100644 --- a/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_cassandra_custom/golden/windows/fluent_bit_main.conf @@ -817,8 +817,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -829,14 +829,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/fluent_bit_main.conf index 57f6252915..ff3f0eee33 100644 --- a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux-gpu/fluent_bit_main.conf @@ -278,8 +278,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -290,14 +290,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/fluent_bit_main.conf index 57f6252915..ff3f0eee33 100644 --- a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/linux/fluent_bit_main.conf @@ -278,8 +278,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -290,14 +290,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/fluent_bit_main.conf index 87ca2c5621..3169bfbd9f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows-2012/fluent_bit_main.conf @@ -320,8 +320,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -332,14 +332,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/fluent_bit_main.conf index 87ca2c5621..3169bfbd9f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_couchbase/golden/windows/fluent_bit_main.conf @@ -320,8 +320,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -332,14 +332,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/fluent_bit_main.conf index 91c46deacb..02a03d250d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux-gpu/fluent_bit_main.conf @@ -187,8 +187,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -199,14 +199,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/fluent_bit_main.conf index 91c46deacb..02a03d250d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/linux/fluent_bit_main.conf @@ -187,8 +187,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -199,14 +199,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/fluent_bit_main.conf index 3abc2d05a5..e472a02eb3 100644 --- a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows-2012/fluent_bit_main.conf @@ -229,8 +229,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -241,14 +241,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/fluent_bit_main.conf index 3abc2d05a5..e472a02eb3 100644 --- a/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_couchdb/golden/windows/fluent_bit_main.conf @@ -229,8 +229,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -241,14 +241,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/fluent_bit_main.conf index c34d3b12b8..8c972e4584 100644 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux-gpu/fluent_bit_main.conf @@ -330,8 +330,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -342,14 +342,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/fluent_bit_main.conf index c34d3b12b8..8c972e4584 100644 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/linux/fluent_bit_main.conf @@ -330,8 +330,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -342,14 +342,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/fluent_bit_main.conf index 0cc320fced..e069d5f3a8 100644 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows-2012/fluent_bit_main.conf @@ -372,8 +372,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -384,14 +384,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/fluent_bit_main.conf index 0cc320fced..e069d5f3a8 100644 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch/golden/windows/fluent_bit_main.conf @@ -372,8 +372,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -384,14 +384,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/fluent_bit_main.conf index 166c39e164..4d66e7b05f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux-gpu/fluent_bit_main.conf @@ -534,8 +534,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -546,14 +546,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/fluent_bit_main.conf index 166c39e164..4d66e7b05f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/linux/fluent_bit_main.conf @@ -534,8 +534,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -546,14 +546,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/fluent_bit_main.conf index 45fa600d03..db575171d5 100644 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows-2012/fluent_bit_main.conf @@ -576,8 +576,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -588,14 +588,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/fluent_bit_main.conf index 45fa600d03..db575171d5 100644 --- a/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_elasticsearch_custom/golden/windows/fluent_bit_main.conf @@ -576,8 +576,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -588,14 +588,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/fluent_bit_main.conf index 25892c8789..5ac1db0db1 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux-gpu/fluent_bit_main.conf @@ -214,8 +214,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -226,14 +226,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/fluent_bit_main.conf index 25892c8789..5ac1db0db1 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/linux/fluent_bit_main.conf @@ -214,8 +214,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -226,14 +226,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/fluent_bit_main.conf index 6b5174b961..b5d6c318da 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows-2012/fluent_bit_main.conf @@ -256,8 +256,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -268,14 +268,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/fluent_bit_main.conf index 6b5174b961..b5d6c318da 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_log_file_path/golden/windows/fluent_bit_main.conf @@ -256,8 +256,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -268,14 +268,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/fluent_bit_main.conf index f5e1fefd84..87f9480f72 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux-gpu/fluent_bit_main.conf @@ -150,8 +150,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -162,14 +162,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/fluent_bit_main.conf index f5e1fefd84..87f9480f72 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/linux/fluent_bit_main.conf @@ -150,8 +150,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -162,14 +162,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/fluent_bit_main.conf index e82b1880d9..aee2425819 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows-2012/fluent_bit_main.conf @@ -192,8 +192,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -204,14 +204,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/fluent_bit_main.conf index e82b1880d9..aee2425819 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_refresh_interval/golden/windows/fluent_bit_main.conf @@ -192,8 +192,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -204,14 +204,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/fluent_bit_main.conf index 00e876ad8e..5770cc6d11 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/fluent_bit_main.conf @@ -254,8 +254,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -266,14 +266,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/fluent_bit_main.conf index 00e876ad8e..5770cc6d11 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/fluent_bit_main.conf @@ -254,8 +254,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -266,14 +266,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/fluent_bit_main.conf index 11045c8f8b..594f91d010 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/fluent_bit_main.conf @@ -296,8 +296,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -308,14 +308,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/fluent_bit_main.conf index 11045c8f8b..594f91d010 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/fluent_bit_main.conf @@ -296,8 +296,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -308,14 +308,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/fluent_bit_main.conf index 77a3da943c..90a5c9d814 100644 --- a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux-gpu/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/fluent_bit_main.conf index 77a3da943c..90a5c9d814 100644 --- a/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_flink/golden/linux/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/fluent_bit_main.conf index b7025680a7..387ff4c662 100644 --- a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows-2012/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/fluent_bit_main.conf index b7025680a7..387ff4c662 100644 --- a/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_flink/golden/windows/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/fluent_bit_main.conf index 8d9dd34d36..ba9c14af9d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux-gpu/fluent_bit_main.conf @@ -148,8 +148,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -160,14 +160,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/fluent_bit_main.conf index 8d9dd34d36..ba9c14af9d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward/golden/linux/fluent_bit_main.conf @@ -148,8 +148,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -160,14 +160,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/fluent_bit_main.conf index c8a5aa2d72..b1124898b0 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows-2012/fluent_bit_main.conf @@ -190,8 +190,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -202,14 +202,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/fluent_bit_main.conf index c8a5aa2d72..b1124898b0 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward/golden/windows/fluent_bit_main.conf @@ -190,8 +190,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -202,14 +202,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/fluent_bit_main.conf index cefbf29568..73acaaeed9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux-gpu/fluent_bit_main.conf @@ -168,8 +168,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -180,14 +180,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/fluent_bit_main.conf index cefbf29568..73acaaeed9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/linux/fluent_bit_main.conf @@ -168,8 +168,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -180,14 +180,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/fluent_bit_main.conf index 30244f5d14..db35352491 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows-2012/fluent_bit_main.conf @@ -210,8 +210,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -222,14 +222,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/fluent_bit_main.conf index 30244f5d14..db35352491 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_conflicting_id/golden/windows/fluent_bit_main.conf @@ -210,8 +210,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -222,14 +222,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/fluent_bit_main.conf index 8038367018..acb1cfa34d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux-gpu/fluent_bit_main.conf @@ -168,8 +168,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -180,14 +180,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/fluent_bit_main.conf index 8038367018..acb1cfa34d 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/linux/fluent_bit_main.conf @@ -168,8 +168,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -180,14 +180,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/fluent_bit_main.conf index 4d59eefae5..c072d57e98 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows-2012/fluent_bit_main.conf @@ -210,8 +210,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -222,14 +222,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/fluent_bit_main.conf index 4d59eefae5..c072d57e98 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_multiple_receivers_with_dot/golden/windows/fluent_bit_main.conf @@ -210,8 +210,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -222,14 +222,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/fluent_bit_main.conf index 2efc022650..dd03bfc404 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux-gpu/fluent_bit_main.conf @@ -148,8 +148,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -160,14 +160,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/fluent_bit_main.conf index 2efc022650..dd03bfc404 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/linux/fluent_bit_main.conf @@ -148,8 +148,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -160,14 +160,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/fluent_bit_main.conf index 4820efae8b..714a5146a2 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows-2012/fluent_bit_main.conf @@ -190,8 +190,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -202,14 +202,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/fluent_bit_main.conf index 4820efae8b..714a5146a2 100644 --- a/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_forward_omitting_optional_parameters/golden/windows/fluent_bit_main.conf @@ -190,8 +190,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -202,14 +202,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/fluent_bit_main.conf index b70c2bcc5e..ce9b6a765a 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux-gpu/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/fluent_bit_main.conf index b70c2bcc5e..ce9b6a765a 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/linux/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/fluent_bit_main.conf index b1f88bfd44..635721a9c8 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows-2012/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/fluent_bit_main.conf index b1f88bfd44..635721a9c8 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop/golden/windows/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/fluent_bit_main.conf index 6a02806b93..e05bc0a682 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux-gpu/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/fluent_bit_main.conf index 6a02806b93..e05bc0a682 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/linux/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/fluent_bit_main.conf index 1aaf54ccb6..bdba76e0e9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows-2012/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/fluent_bit_main.conf index 1aaf54ccb6..bdba76e0e9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hadoop_refresh_interval/golden/windows/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/fluent_bit_main.conf index 22b5cb93bb..830eea70f5 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux-gpu/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/fluent_bit_main.conf index 22b5cb93bb..830eea70f5 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/linux/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/fluent_bit_main.conf index 390d10763a..3e16c0abae 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows-2012/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/fluent_bit_main.conf index 390d10763a..3e16c0abae 100644 --- a/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_hbase/golden/windows/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/fluent_bit_main.conf index eca122c4cc..37f214b13a 100644 --- a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux-gpu/fluent_bit_main.conf @@ -174,8 +174,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -186,14 +186,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/fluent_bit_main.conf index eca122c4cc..37f214b13a 100644 --- a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/linux/fluent_bit_main.conf @@ -174,8 +174,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -186,14 +186,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/fluent_bit_main.conf index 38b4185a71..723781c993 100644 --- a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows-2012/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/fluent_bit_main.conf index 38b4185a71..723781c993 100644 --- a/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_jetty/golden/windows/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/fluent_bit_main.conf index 1a99907d63..359f0dc385 100644 --- a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux-gpu/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/fluent_bit_main.conf index 1a99907d63..359f0dc385 100644 --- a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/linux/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/fluent_bit_main.conf index a72dbda348..afec621443 100644 --- a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows-2012/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/fluent_bit_main.conf index a72dbda348..afec621443 100644 --- a/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_kafka/golden/windows/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/fluent_bit_main.conf index 73ebea05a2..43e106fac1 100644 --- a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux-gpu/fluent_bit_main.conf @@ -228,8 +228,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -240,14 +240,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/fluent_bit_main.conf index 73ebea05a2..43e106fac1 100644 --- a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/linux/fluent_bit_main.conf @@ -228,8 +228,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -240,14 +240,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/fluent_bit_main.conf index f4217d2db0..938de934ab 100644 --- a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows-2012/fluent_bit_main.conf @@ -270,8 +270,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -282,14 +282,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/fluent_bit_main.conf index f4217d2db0..938de934ab 100644 --- a/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_kafka_custom/golden/windows/fluent_bit_main.conf @@ -270,8 +270,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -282,14 +282,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/fluent_bit_main.conf index 727f3ba5f6..86031c6263 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux-gpu/fluent_bit_main.conf @@ -264,8 +264,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -276,14 +276,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/fluent_bit_main.conf index 727f3ba5f6..86031c6263 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/linux/fluent_bit_main.conf @@ -264,8 +264,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -276,14 +276,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/fluent_bit_main.conf index 1869c95c2c..e5e5237484 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows-2012/fluent_bit_main.conf @@ -306,8 +306,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -318,14 +318,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/fluent_bit_main.conf index 1869c95c2c..e5e5237484 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mongodb/golden/windows/fluent_bit_main.conf @@ -306,8 +306,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -318,14 +318,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/fluent_bit_main.conf index e57a0da775..fb2dce5b43 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux-gpu/fluent_bit_main.conf @@ -282,8 +282,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -294,14 +294,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/fluent_bit_main.conf index e57a0da775..fb2dce5b43 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/linux/fluent_bit_main.conf @@ -282,8 +282,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -294,14 +294,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/fluent_bit_main.conf index 8837270603..d351d51d06 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows-2012/fluent_bit_main.conf @@ -324,8 +324,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -336,14 +336,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/fluent_bit_main.conf index 8837270603..d351d51d06 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mysql/golden/windows/fluent_bit_main.conf @@ -324,8 +324,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -336,14 +336,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/fluent_bit_main.conf index 2e4d15ad15..44767d7602 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux-gpu/fluent_bit_main.conf @@ -760,8 +760,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -772,14 +772,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/fluent_bit_main.conf index 2e4d15ad15..44767d7602 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/linux/fluent_bit_main.conf @@ -760,8 +760,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -772,14 +772,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/fluent_bit_main.conf index 7587b21d88..4b2bbc030b 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows-2012/fluent_bit_main.conf @@ -802,8 +802,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -814,14 +814,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/fluent_bit_main.conf index 7587b21d88..4b2bbc030b 100644 --- a/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_mysql_custom/golden/windows/fluent_bit_main.conf @@ -802,8 +802,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -814,14 +814,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/fluent_bit_main.conf index 934f404033..de4886e0e2 100644 --- a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux-gpu/fluent_bit_main.conf @@ -220,8 +220,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -232,14 +232,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/fluent_bit_main.conf index 934f404033..de4886e0e2 100644 --- a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/linux/fluent_bit_main.conf @@ -220,8 +220,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -232,14 +232,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/fluent_bit_main.conf index caead6cd97..5f91f55c45 100644 --- a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows-2012/fluent_bit_main.conf @@ -262,8 +262,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -274,14 +274,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/fluent_bit_main.conf index caead6cd97..5f91f55c45 100644 --- a/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_nginx/golden/windows/fluent_bit_main.conf @@ -262,8 +262,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -274,14 +274,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/fluent_bit_main.conf index 3e8f1fb368..9d34393310 100644 --- a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux-gpu/fluent_bit_main.conf @@ -396,8 +396,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -408,14 +408,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/fluent_bit_main.conf index 3e8f1fb368..9d34393310 100644 --- a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/linux/fluent_bit_main.conf @@ -396,8 +396,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -408,14 +408,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/fluent_bit_main.conf index f5c6323fc1..aba58dcaf1 100644 --- a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows-2012/fluent_bit_main.conf @@ -438,8 +438,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -450,14 +450,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/fluent_bit_main.conf index f5c6323fc1..aba58dcaf1 100644 --- a/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_nginx_custom/golden/windows/fluent_bit_main.conf @@ -438,8 +438,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -450,14 +450,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/fluent_bit_main.conf index 3ae00767a0..510306b73f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux-gpu/fluent_bit_main.conf @@ -232,8 +232,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -244,14 +244,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/fluent_bit_main.conf index 3ae00767a0..510306b73f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/linux/fluent_bit_main.conf @@ -232,8 +232,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -244,14 +244,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/fluent_bit_main.conf index e19577ad1b..848808f1b2 100644 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows-2012/fluent_bit_main.conf @@ -274,8 +274,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -286,14 +286,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/fluent_bit_main.conf index e19577ad1b..848808f1b2 100644 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb/golden/windows/fluent_bit_main.conf @@ -274,8 +274,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -286,14 +286,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/fluent_bit_main.conf index fe2537427c..2b35ce05a6 100644 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux-gpu/fluent_bit_main.conf @@ -430,8 +430,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -442,14 +442,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/fluent_bit_main.conf index fe2537427c..2b35ce05a6 100644 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/linux/fluent_bit_main.conf @@ -430,8 +430,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -442,14 +442,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/fluent_bit_main.conf index b6d0bf61e6..035e87797c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows-2012/fluent_bit_main.conf @@ -472,8 +472,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -484,14 +484,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/fluent_bit_main.conf index b6d0bf61e6..035e87797c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_oracledb_custom/golden/windows/fluent_bit_main.conf @@ -472,8 +472,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -484,14 +484,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/fluent_bit_main.conf index 24fa339d9f..32360d3104 100644 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux-gpu/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/fluent_bit_main.conf index 24fa339d9f..32360d3104 100644 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/linux/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/fluent_bit_main.conf index e758aa8d58..4853b7037c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows-2012/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/fluent_bit_main.conf index e758aa8d58..4853b7037c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql/golden/windows/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/fluent_bit_main.conf index 1340a3ae5d..007d8bea8c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux-gpu/fluent_bit_main.conf @@ -279,8 +279,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -291,14 +291,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/fluent_bit_main.conf index 1340a3ae5d..007d8bea8c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/linux/fluent_bit_main.conf @@ -279,8 +279,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -291,14 +291,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/fluent_bit_main.conf index f987a34719..415b0de635 100644 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows-2012/fluent_bit_main.conf @@ -321,8 +321,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -333,14 +333,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/fluent_bit_main.conf index f987a34719..415b0de635 100644 --- a/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_postgresql_custom/golden/windows/fluent_bit_main.conf @@ -321,8 +321,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -333,14 +333,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/fluent_bit_main.conf index d9924e5054..89bc15dc0c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux-gpu/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/fluent_bit_main.conf index d9924e5054..89bc15dc0c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/linux/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/fluent_bit_main.conf index 079ed1fa46..f1747223cc 100644 --- a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows-2012/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/fluent_bit_main.conf index 079ed1fa46..f1747223cc 100644 --- a/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_rabbitmq/golden/windows/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/fluent_bit_main.conf index aa6f2e24db..a43f4c2800 100644 --- a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux-gpu/fluent_bit_main.conf @@ -174,8 +174,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -186,14 +186,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/fluent_bit_main.conf index aa6f2e24db..a43f4c2800 100644 --- a/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_redis/golden/linux/fluent_bit_main.conf @@ -174,8 +174,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -186,14 +186,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/fluent_bit_main.conf index a9bc8b7470..fef01bb289 100644 --- a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows-2012/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/fluent_bit_main.conf index a9bc8b7470..fef01bb289 100644 --- a/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_redis/golden/windows/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/fluent_bit_main.conf index 51dccab6ef..bcb1c0ac34 100644 --- a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux-gpu/fluent_bit_main.conf @@ -262,8 +262,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -274,14 +274,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/fluent_bit_main.conf index 51dccab6ef..bcb1c0ac34 100644 --- a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/linux/fluent_bit_main.conf @@ -262,8 +262,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -274,14 +274,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/fluent_bit_main.conf index ebc4e17681..192f23aac9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows-2012/fluent_bit_main.conf @@ -304,8 +304,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -316,14 +316,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/fluent_bit_main.conf index ebc4e17681..192f23aac9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_redis_custom/golden/windows/fluent_bit_main.conf @@ -304,8 +304,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -316,14 +316,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/fluent_bit_main.conf index 41c785be54..18737a6c9a 100644 --- a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux-gpu/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/fluent_bit_main.conf index 41c785be54..18737a6c9a 100644 --- a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/linux/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/fluent_bit_main.conf index 456eba2c67..013452e313 100644 --- a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows-2012/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/fluent_bit_main.conf index 456eba2c67..013452e313 100644 --- a/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_saphana/golden/windows/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/fluent_bit_main.conf index c2385e81f1..a43713bb33 100644 --- a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux-gpu/fluent_bit_main.conf @@ -276,8 +276,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -288,14 +288,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/fluent_bit_main.conf index c2385e81f1..a43713bb33 100644 --- a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/linux/fluent_bit_main.conf @@ -276,8 +276,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -288,14 +288,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/fluent_bit_main.conf index faa96f932a..27a11817d9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows-2012/fluent_bit_main.conf @@ -318,8 +318,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -330,14 +330,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/fluent_bit_main.conf index faa96f932a..27a11817d9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_saphana_custom/golden/windows/fluent_bit_main.conf @@ -318,8 +318,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -330,14 +330,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/fluent_bit_main.conf index b0695fbb20..1238f66ad6 100644 --- a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux-gpu/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/fluent_bit_main.conf index b0695fbb20..1238f66ad6 100644 --- a/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_solr/golden/linux/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/fluent_bit_main.conf index 192e597de3..ce7bcd4b15 100644 --- a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows-2012/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/fluent_bit_main.conf index 192e597de3..ce7bcd4b15 100644 --- a/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_solr/golden/windows/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/fluent_bit_main.conf index 2f748f7659..a13b8eed84 100644 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/fluent_bit_main.conf @@ -177,8 +177,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -189,14 +189,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/fluent_bit_main.conf index 2f748f7659..a13b8eed84 100644 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/fluent_bit_main.conf @@ -177,8 +177,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -189,14 +189,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/fluent_bit_main.conf index 1c32601bca..5ac230b416 100644 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/fluent_bit_main.conf @@ -177,8 +177,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -189,14 +189,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/fluent_bit_main.conf index 1c32601bca..5ac230b416 100644 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/fluent_bit_main.conf @@ -177,8 +177,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -189,14 +189,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/fluent_bit_main.conf index e29bf4ab2b..d57ef5c07b 100644 --- a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux-gpu/fluent_bit_main.conf @@ -213,8 +213,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -225,14 +225,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/fluent_bit_main.conf index e29bf4ab2b..d57ef5c07b 100644 --- a/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_systemd/golden/linux/fluent_bit_main.conf @@ -213,8 +213,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -225,14 +225,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/fluent_bit_main.conf index deee079f75..f551e2e0c3 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux-gpu/fluent_bit_main.conf @@ -144,8 +144,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -156,14 +156,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/fluent_bit_main.conf index deee079f75..f551e2e0c3 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/linux/fluent_bit_main.conf @@ -144,8 +144,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -156,14 +156,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/fluent_bit_main.conf index 129352279b..9ed2b44716 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows-2012/fluent_bit_main.conf @@ -186,8 +186,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -198,14 +198,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/fluent_bit_main.conf index 129352279b..9ed2b44716 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp/golden/windows/fluent_bit_main.conf @@ -186,8 +186,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -198,14 +198,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/fluent_bit_main.conf index deee079f75..f551e2e0c3 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux-gpu/fluent_bit_main.conf @@ -144,8 +144,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -156,14 +156,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/fluent_bit_main.conf index deee079f75..f551e2e0c3 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/linux/fluent_bit_main.conf @@ -144,8 +144,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -156,14 +156,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/fluent_bit_main.conf index 129352279b..9ed2b44716 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows-2012/fluent_bit_main.conf @@ -186,8 +186,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -198,14 +198,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/fluent_bit_main.conf index 129352279b..9ed2b44716 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_duplicated_port_but_not_used/golden/windows/fluent_bit_main.conf @@ -186,8 +186,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -198,14 +198,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/fluent_bit_main.conf index fbf446d55e..e79bbec7c5 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux-gpu/fluent_bit_main.conf @@ -144,8 +144,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -156,14 +156,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/fluent_bit_main.conf index fbf446d55e..e79bbec7c5 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/linux/fluent_bit_main.conf @@ -144,8 +144,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -156,14 +156,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/fluent_bit_main.conf index a300d99a71..e1af881427 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows-2012/fluent_bit_main.conf @@ -186,8 +186,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -198,14 +198,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/fluent_bit_main.conf index a300d99a71..e1af881427 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tcp_omitting_optional_parameters/golden/windows/fluent_bit_main.conf @@ -186,8 +186,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -198,14 +198,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/fluent_bit_main.conf index 1fc331fc3b..a095b28b1c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux-gpu/fluent_bit_main.conf @@ -226,8 +226,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -238,14 +238,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/fluent_bit_main.conf index 1fc331fc3b..a095b28b1c 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/linux/fluent_bit_main.conf @@ -226,8 +226,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -238,14 +238,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/fluent_bit_main.conf index 59631b94e5..6de59ed168 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows-2012/fluent_bit_main.conf @@ -268,8 +268,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -280,14 +280,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/fluent_bit_main.conf index 59631b94e5..6de59ed168 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat/golden/windows/fluent_bit_main.conf @@ -268,8 +268,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -280,14 +280,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/fluent_bit_main.conf index 705dbed1f8..cf07b0a404 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux-gpu/fluent_bit_main.conf @@ -468,8 +468,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -480,14 +480,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/fluent_bit_main.conf index 705dbed1f8..cf07b0a404 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/linux/fluent_bit_main.conf @@ -468,8 +468,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -480,14 +480,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/fluent_bit_main.conf index 4eea48a393..c31f56e35f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows-2012/fluent_bit_main.conf @@ -510,8 +510,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -522,14 +522,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/fluent_bit_main.conf index 4eea48a393..c31f56e35f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_tomcat_custom/golden/windows/fluent_bit_main.conf @@ -510,8 +510,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -522,14 +522,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/fluent_bit_main.conf index a61c92843a..49133be2a7 100644 --- a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux-gpu/fluent_bit_main.conf @@ -174,8 +174,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -186,14 +186,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/fluent_bit_main.conf index a61c92843a..49133be2a7 100644 --- a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/linux/fluent_bit_main.conf @@ -174,8 +174,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -186,14 +186,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/fluent_bit_main.conf index eb704074b9..ab00fcb559 100644 --- a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows-2012/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/fluent_bit_main.conf index eb704074b9..ab00fcb559 100644 --- a/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_varnish/golden/windows/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/fluent_bit_main.conf index 4d3fe83972..2e66889fa3 100644 --- a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux-gpu/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/fluent_bit_main.conf index 4d3fe83972..2e66889fa3 100644 --- a/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_vault/golden/linux/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/fluent_bit_main.conf index e2cdfff023..4305216270 100644 --- a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows-2012/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/fluent_bit_main.conf index e2cdfff023..4305216270 100644 --- a/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_vault/golden/windows/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/fluent_bit_main.conf index cd7bf63615..d2641f3e0f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux-gpu/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/fluent_bit_main.conf index cd7bf63615..d2641f3e0f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/linux/fluent_bit_main.conf @@ -180,8 +180,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -192,14 +192,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/fluent_bit_main.conf index 71e550e0fa..b81855db86 100644 --- a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows-2012/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/fluent_bit_main.conf index 71e550e0fa..b81855db86 100644 --- a/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_wildfly/golden/windows/fluent_bit_main.conf @@ -222,8 +222,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -234,14 +234,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/fluent_bit_main.conf index 6e59be6ef1..8175614f3b 100644 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux-gpu/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/fluent_bit_main.conf index 6e59be6ef1..8175614f3b 100644 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/linux/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/fluent_bit_main.conf index 568052934f..5db1879a30 100644 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows-2012/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/fluent_bit_main.conf index 568052934f..5db1879a30 100644 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper/golden/windows/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/fluent_bit_main.conf index 4881825264..2da2252c76 100644 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux-gpu/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/fluent_bit_main.conf index 4881825264..2da2252c76 100644 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/linux/fluent_bit_main.conf @@ -181,8 +181,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -193,14 +193,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/fluent_bit_main.conf index 3dea568643..0fcba5e272 100644 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows-2012/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/fluent_bit_main.conf index 3dea568643..0fcba5e272 100644 --- a/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/logging-receiver_zookeeper_custom/golden/windows/fluent_bit_main.conf @@ -223,8 +223,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -235,14 +235,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-custom_log_level/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-default_overrides_disable_all/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_all_nvml_metrics_individually/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_individual/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_by_prefixes/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_globs/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_metrics_type_filter_with_special_chars/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_exclude_workload_metrics/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_three_exclude_metrics_processors_not_disable_nvml/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-processor_two_exclude_metrics_processors/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver-no-collection_interval/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_activemq_no_jvm/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_aerospike/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_apache/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_apache_custom/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_cassandra_custom/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_couchbase/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_couchdb/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_custom_collection_interval/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_dcgm/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_credentials/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_custom_endpoint_http/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_disable_cluster_metrics/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_no_jvm/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_elasticsearch_tls_credentials/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_nvml_from_hostmetrics/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_exclude_subset_of_nvml_metrics/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_flink/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hadoop_no_jvm/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_hbase_no_jvm/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jetty_no_jvm/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_auth/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_jvm_with_endpoint/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_kafka_no_jvm/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_memcached/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mongodb_unix_socket/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_mysql_missing_endpoint/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_nginx_custom/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_all_params/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_oracledb_unix_socket/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_no_sni/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_postgresql_tls_with_certs/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_basic_auth/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_complex/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_default_replacement/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_multi_replacement_regex/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_node_exporter/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_relabel/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_replace_using_capture_groups/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_scrape_interval/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_prometheus_tlx_with_certs/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_no_sni/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_rabbitmq_tls_with_certs/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_redis/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_redis_custom/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_saphana/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_solr/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_tomcat_custom/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_varnish/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_tls/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_vault_with_token/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_wildfly_with_host_port/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/metrics-receiver_zookeeper_endpoint/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-all-backward_compatible_with_explicit_exporters/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/fluent_bit_main.conf index 8bf36bee3f..2f8d2a0c06 100644 --- a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows-2012/fluent_bit_main.conf @@ -233,8 +233,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -245,14 +245,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/fluent_bit_main.conf index 8bf36bee3f..2f8d2a0c06 100644 --- a/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-all-custom_use_built_in_receivers/golden/windows/fluent_bit_main.conf @@ -233,8 +233,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -245,14 +245,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/fluent_bit_main.conf index 0dff6e525f..b79eb17e11 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows-2012/fluent_bit_main.conf @@ -239,8 +239,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -251,14 +251,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/fluent_bit_main.conf index 0dff6e525f..b79eb17e11 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_active_directory_ds/golden/windows/fluent_bit_main.conf @@ -239,8 +239,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -251,14 +251,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/fluent_bit_main.conf index 51e973e718..f773443160 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/fluent_bit_main.conf @@ -227,8 +227,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -239,14 +239,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/fluent_bit_main.conf index 51e973e718..f773443160 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/fluent_bit_main.conf @@ -227,8 +227,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -239,14 +239,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/fluent_bit_main.conf index 7e420c8b6b..076c9cf05c 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows-2012/fluent_bit_main.conf @@ -210,8 +210,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -222,14 +222,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/fluent_bit_main.conf index 9a81c7e22f..3970aeb940 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_new_channels/golden/windows/fluent_bit_main.conf @@ -209,8 +209,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -221,14 +221,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/fluent_bit_main.conf index 94122a89ff..cadbd3703f 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows-2012/fluent_bit_main.conf @@ -147,8 +147,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -159,14 +159,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/fluent_bit_main.conf index 89d9204f66..69b9b744c1 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_override_builtin/golden/windows/fluent_bit_main.conf @@ -146,8 +146,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -158,14 +158,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/fluent_bit_main.conf index f6428b1293..737ccfc3d9 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows-2012/fluent_bit_main.conf @@ -216,8 +216,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -228,14 +228,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/fluent_bit_main.conf index bcb72c7392..e487f4b136 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-receiver_winlog2_xml/golden/windows/fluent_bit_main.conf @@ -215,8 +215,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -227,14 +227,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/fluent_bit_main.conf index 915fd8212a..5f63386cd9 100644 --- a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows-2012/fluent_bit_main.conf @@ -210,8 +210,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -222,14 +222,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/fluent_bit_main.conf index 3ef16f0242..99610c93dc 100644 --- a/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-logging-use_ansi/golden/windows/fluent_bit_main.conf @@ -209,8 +209,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -221,14 +221,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_iis/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-default_overrides_disable_mssql/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-pipeline_multiple_pipelines/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_active_directory_ds/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_duplicate/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_iis_v2_override/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux-gpu/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/fluent_bit_main.conf index 60e9a445b4..09bdbb7cb7 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/linux/fluent_bit_main.conf @@ -128,8 +128,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -140,14 +140,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_jvm_missing_endpoint/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_duplicate/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows-2012/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua new file mode 100644 index 0000000000..dda27aee97 --- /dev/null +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/0f15dbe303dc7122d43443c9a4c31632.lua @@ -0,0 +1,28 @@ + +function process(tag, timestamp, record) +local v = "ops-agent"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value +end)(v) +local v = "latest"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value +end)(v) +local v = "v1"; +(function(value) +if record["logging.googleapis.com/labels"] == nil +then +record["logging.googleapis.com/labels"] = {} +end +record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value +end)(v) +return 2, timestamp, record +end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua deleted file mode 100644 index 16b933cb7d..0000000000 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/68d6a3a0e8edf37868e1bf94adc737f4.lua +++ /dev/null @@ -1,38 +0,0 @@ - -function process(tag, timestamp, record) -local __field_0 = (function() -return record["message"] -end)(); -local v = __field_0; -if v == "LogParseErr" then v = "Ops Agent failed to parse logs, Code: LogParseErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -elseif v == "LogPipelineErr" then v = "Ops Agent logging pipeline failed, Code: LogPipelineErr, Documentation: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" -end -(function(value) -record["message"] = value -end)(v) -local v = "ops-agent"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentKind"] = value -end)(v) -local v = "latest"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/agentVersion"] = value -end)(v) -local v = "v1"; -(function(value) -if record["logging.googleapis.com/labels"] == nil -then -record["logging.googleapis.com/labels"] = {} -end -record["logging.googleapis.com/labels"]["agent.googleapis.com/health/schemaVersion"] = value -end)(v) -return 2, timestamp, record -end diff --git a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/fluent_bit_main.conf b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/fluent_bit_main.conf index 3e1037853c..c178b037ec 100644 --- a/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/fluent_bit_main.conf +++ b/confgenerator/testdata/goldens/windows-metrics-receiver_mssql_v2_override/golden/windows/fluent_bit_main.conf @@ -170,8 +170,8 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[lib\]\sbackend\sfailed - Set message LogPipelineErr Set code LogPipelineErr + Set message "[Runtime Check] Result: FAIL, Error code: LogPipelineErr, Failure: Ops Agent logging pipeline failed, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-fluent-bit @@ -182,14 +182,14 @@ Name modify Match ops-agent-health Condition Key_value_matches message \[error\]\s\[parser\]\scannot\sparse - Set message LogParseErr Set code LogParseErr + Set message "[Runtime Check] Result: WARNING, Error code: LogParseErr, Failure: Ops Agent failed to parse logs, Solution: Refer to provided documentation link., Resource: https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info" [FILTER] Match ops-agent-health Name lua call process - script 68d6a3a0e8edf37868e1bf94adc737f4.lua + script 0f15dbe303dc7122d43443c9a4c31632.lua [FILTER] Match ops-agent-* diff --git a/integration_test/ops_agent_test/main_test.go b/integration_test/ops_agent_test/main_test.go index a680c9dd99..326caf06c9 100644 --- a/integration_test/ops_agent_test/main_test.go +++ b/integration_test/ops_agent_test/main_test.go @@ -4390,7 +4390,7 @@ metrics: } func isHealthCheckTestPlatform(platform string) bool { - return platform == "windows-2019" || platform == "debian-11" + return strings.HasSuffix(platform, "windows-2022") || strings.HasSuffix(platform, "debian-11") } func healthCheckResultMessage(name string, result string, code string) string { @@ -4587,6 +4587,28 @@ func TestParsingFailureCheck(t *testing.T) { }) } +func TestNoFluentBitDebugSelfLogs(t *testing.T) { + t.Parallel() + gce.RunForEachPlatform(t, func(t *testing.T, platform string) { + t.Parallel() + ctx, logger, vm := agents.CommonSetup(t, platform) + + enableDebugLogLevel := `logging: + service: + log_level: debug +` + if err := agents.SetupOpsAgent(ctx, logger.ToMainLog(), vm, enableDebugLogLevel); err != nil { + t.Fatal(err) + } + + // Verifies no fluent-bit debug logs are sent to Cloud Logging due to endless spam. + // TODO: Remove when b/272779619 is fixed. + if err := gce.AssertLogMissing(ctx, logger.ToMainLog(), vm, "ops-agent-fluent-bit", time.Hour, `severity="DEBUG"`); err != nil { + t.Error(err) + } + }) +} + func TestDisableSelfLogCollection(t *testing.T) { t.Parallel() gce.RunForEachPlatform(t, func(t *testing.T, platform string) { diff --git a/internal/healthchecks/error.go b/internal/healthchecks/error.go index 63da07a47e..48c001db10 100644 --- a/internal/healthchecks/error.go +++ b/internal/healthchecks/error.go @@ -21,6 +21,7 @@ const ( Generic = "GENERIC" Port = "PORT" Permission = "PERMISSION" + Runtime = "RUNTIME" ) type HealthCheckError struct { @@ -164,6 +165,22 @@ var ( ResourceLink: "https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/authorization", IsFatal: true, } + LogPipelineErr = HealthCheckError{ + Code: "LogPipelineErr", + Class: Runtime, + Message: "Ops Agent logging pipeline failed", + Action: "Refer to provided documentation link.", + ResourceLink: "https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info", + IsFatal: true, + } + LogParseErr = HealthCheckError{ + Code: "LogParseErr", + Class: Runtime, + Message: "Ops Agent failed to parse logs", + Action: "Refer to provided documentation link.", + ResourceLink: "https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/troubleshoot-find-info", + IsFatal: false, + } HcFailureErr = HealthCheckError{ Code: "HcFailureErr", Class: Generic, @@ -173,3 +190,22 @@ var ( IsFatal: false, } ) + +type SelfLogTranslationEntry struct { + RegexMatch string + Message string + Code string +} + +var FluentBitSelfLogTranslationList = []SelfLogTranslationEntry{ + { + RegexMatch: `\[error\]\s\[lib\]\sbackend\sfailed`, + Message: singleErrorResultMessage(LogPipelineErr, "Runtime Check"), + Code: LogPipelineErr.Code, + }, + { + RegexMatch: `\[error\]\s\[parser\]\scannot\sparse`, + Message: singleErrorResultMessage(LogParseErr, "Runtime Check"), + Code: LogParseErr.Code, + }, +} diff --git a/internal/logs/logs.go b/internal/logs/logs.go index 4ac71bb2a5..4e22f08f13 100644 --- a/internal/logs/logs.go +++ b/internal/logs/logs.go @@ -17,7 +17,6 @@ package logs import ( "log" "os" - "strconv" "go.uber.org/zap" "go.uber.org/zap/zapcore" @@ -25,10 +24,9 @@ import ( ) const ( - MessageZapKey string = "message" - SeverityZapKey string = "severity" - SourceLocationZapKey string = "logging.googleapis.com/sourceLocation" - TimeZapKey string = "time" + MessageZapKey string = "message" + SeverityZapKey string = "severity" + TimeZapKey string = "time" ) type StructuredLogger interface { @@ -76,29 +74,15 @@ func (sm stringMap) MarshalLogObject(enc zapcore.ObjectEncoder) error { return nil } -func sourceLocationEncoder(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayEncoder) { - ae, ok := enc.(zapcore.ArrayEncoder) - if !ok { - zapcore.FullCallerEncoder(caller, enc) - return - } - ae.AppendObject(stringMap{ - "file": caller.File, - "function": caller.Function, - "line": strconv.Itoa(caller.Line), - }) -} - func New(file string) *ZapStructuredLogger { cfg := zap.NewProductionConfig() + cfg.DisableCaller = true cfg.DisableStacktrace = true - cfg.EncoderConfig.CallerKey = SourceLocationZapKey cfg.EncoderConfig.MessageKey = MessageZapKey cfg.EncoderConfig.LevelKey = SeverityZapKey cfg.EncoderConfig.TimeKey = TimeZapKey cfg.EncoderConfig.EncodeTime = zapcore.RFC3339TimeEncoder cfg.EncoderConfig.EncodeLevel = severityEncoder - cfg.EncoderConfig.EncodeCaller = sourceLocationEncoder cfg.OutputPaths = []string{ file,