Skip to content

Commit f0a3ba7

Browse files
committed
[msi] remove FluentD support
1 parent 3c8d777 commit f0a3ba7

File tree

4 files changed

+17
-66
lines changed

4 files changed

+17
-66
lines changed

.chloggen/remove_fluentd_msi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: breaking
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. crosslink)
5+
component: msi
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: remove FluentD support
9+
10+
# One or more tracking issues related to the change
11+
issues: []
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext: |
17+
Remove FluentD support after deprecation. Use native receivers such as the filelog receiver instead.

packaging/msi/fluentd/conf.d/eventlog.conf

Lines changed: 0 additions & 24 deletions
This file was deleted.

packaging/msi/msi-builder/build.sh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ WXS_PATH="${MSI_SRC_DIR}/splunk-otel-collector.wxs"
2121
OTELCOL="${REPO_DIR}/bin/otelcol_windows_amd64.exe"
2222
AGENT_CONFIG="${REPO_DIR}/cmd/otelcol/config/collector/agent_config.yaml"
2323
GATEWAY_CONFIG="${REPO_DIR}/cmd/otelcol/config/collector/gateway_config.yaml"
24-
FLUENTD_CONFIG=${FLUENTD_CONFIG:-"${REPO_DIR}/packaging/fpm/etc/otel/collector/fluentd/fluent.conf"}
25-
FLUENTD_CONFD="${MSI_SRC_DIR}/fluentd/conf.d"
2624
SUPPORT_BUNDLE_SCRIPT=${SUPPORT_BUNDLE_SCRIPT:-"${MSI_SRC_DIR}/splunk-support-bundle.ps1"}
2725
SPLUNK_ICON="${MSI_SRC_DIR}/splunk.ico"
2826
OUTPUT_DIR="${REPO_DIR}/dist"
@@ -43,16 +41,6 @@ OPTIONS:
4341
Defaults to '$AGENT_CONFIG'.
4442
--gateway-config PATH Absolute path to the gateway config.
4543
Defaults to '$GATEWAY_CONFIG'.
46-
--fluentd PATH DEPRECATED: Fluentd support has been deprecated and will be removed in a future release.
47-
Please refer to documentation for more information:
48-
https://github.com/signalfx/splunk-otel-collector/blob/main/docs/deprecations/fluentd-support.md
49-
Absolute path to the fluentd config.
50-
Defaults to '$FLUENTD_CONFIG'.
51-
--fluentd-confd PATH DEPRECATED: Fluentd support has been deprecated and will be removed in a future release.
52-
Please refer to documentation for more information:
53-
https://github.com/signalfx/splunk-otel-collector/blob/main/docs/deprecations/fluentd-support.md
54-
Absolute path to the conf.d.
55-
Defaults to '$FLUENTD_CONFD'.
5644
--support-bundle PATH Absolute path to the support bundle script.
5745
Defaults to '$SUPPORT_BUNDLE_SCRIPT'.
5846
--jmx-metric-gatherer VERSION The released version of the JMX Metric Gatherer JAR to include (will be downloaded).
@@ -69,8 +57,6 @@ parse_args_and_build() {
6957
local otelcol="$OTELCOL"
7058
local agent_config="$AGENT_CONFIG"
7159
local gateway_config="$GATEWAY_CONFIG"
72-
local fluentd_config="$FLUENTD_CONFIG"
73-
local fluentd_confd="$FLUENTD_CONFD"
7460
local support_bundle="$SUPPORT_BUNDLE_SCRIPT"
7561
local jmx_metric_gatherer_release="$JMX_METRIC_GATHERER_RELEASE"
7662
local splunk_icon="$SPLUNK_ICON"
@@ -92,16 +78,6 @@ parse_args_and_build() {
9278
gateway_config="$2"
9379
shift 1
9480
;;
95-
--fluentd)
96-
echo "[WARNING] DEPRECATED: Fluentd support has been deprecated and will be removed in a future release. Please refer to documentation for more information: https://github.com/signalfx/splunk-otel-collector/blob/main/docs/deprecations/fluentd-support.md"
97-
fluentd_config="$2"
98-
shift 1
99-
;;
100-
--fluentd-confd)
101-
echo "[WARNING] DEPRECATED: Fluentd support has been deprecated and will be removed in a future release. Please refer to documentation for more information: https://github.com/signalfx/splunk-otel-collector/blob/main/docs/deprecations/fluentd-support.md"
102-
fluentd_confd="$2"
103-
shift 1
104-
;;
10581
--support-bundle)
10682
support_bundle="$2"
10783
shift 1
@@ -156,12 +132,9 @@ parse_args_and_build() {
156132
echo "Skipping build directory removal"
157133
fi
158134

159-
mkdir -p "${files_dir}/fluentd/conf.d"
160135
cp "$support_bundle" "${files_dir}/splunk-support-bundle.ps1"
161136
cp "$agent_config" "${files_dir}/agent_config.yaml"
162137
cp "$gateway_config" "${files_dir}/gateway_config.yaml"
163-
cp "$fluentd_config" "${files_dir}/fluentd/td-agent.conf"
164-
cp "${fluentd_confd}"/*.conf "${files_dir}/fluentd/conf.d/"
165138

166139
if [ -z "$skip_build_dir_removal" ]; then
167140
unzip -d "$files_dir" "${OUTPUT_DIR}/agent-bundle_windows_amd64.zip"

packaging/msi/splunk-support-bundle.ps1

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,6 @@ function getConfig {
196196
} else {
197197
Copy-Item -Path "$CONFDIR" -Destination "$TMPDIR/config" -Recurse
198198
}
199-
$FLUENTD_CONFDIR="${env:SYSTEMDRIVE}\opt\td-agent\etc\td-agent"
200-
if (-NOT (Test-Path -Path $FLUENTD_CONFDIR)) {
201-
Write-Output "WARN: Could not find directory ($FLUENTD_CONFDIR)."
202-
} else {
203-
Copy-Item -Path "$FLUENTD_CONFDIR" -Destination "$TMPDIR/config" -Recurse
204-
}
205199
}
206200

207201
#######################################
@@ -214,15 +208,10 @@ function getConfig {
214208
function getStatus {
215209
Write-Output "INFO: Getting status..."
216210
Get-Service splunk-otel-collector -ErrorAction SilentlyContinue > $TMPDIR/logs/splunk-otel-collector.txt 2>&1
217-
Get-Service fluentdwinsvc -ErrorAction SilentlyContinue > $TMPDIR/logs/td-agent.txt 2>&1
218211
if (-NOT (Get-Content -Path "$TMPDIR/logs/splunk-otel-collector.txt")) {
219212
Set-Content -Path "$TMPDIR/logs/splunk-otel-collector.txt" -Value "Service splunk-otel-collector not exist."
220213
Write-Output "WARN: Service splunk-otel-collector not exist."
221214
}
222-
if (-NOT (Get-Content -Path "$TMPDIR/logs/td-agent.txt")) {
223-
Set-Content -Path "$TMPDIR/logs/td-agent.txt" -Value "Service td-agent not exist."
224-
Write-Output "WARN: Service td-agent not exist."
225-
}
226215
}
227216

228217
#######################################
@@ -341,10 +330,6 @@ function getHostInfo {
341330
Write-Output "WARN: Unable to find otelcol PIDs"
342331
Write-Output " Get-Process will not be collected for otelcol";
343332
}
344-
if (-NOT (Get-Process -Name 'ruby' -ErrorAction SilentlyContinue | Where-Object {$_.Path -eq "${env:SYSTEMDRIVE}\opt\td-agent\bin\ruby.exe"})) {
345-
Write-Output "WARN: Unable to find fluentd (ruby) PIDs"
346-
Write-Output " Get-Process will not be collected for fluentd (ruby)";
347-
}
348333
Get-PSDrive > $TMPDIR/metrics/df.txt 2>&1
349334

350335
Get-CIMInstance Win32_OperatingSystem | Select TotalVisibleMemorySize,FreePhysicalMemory,TotalVirtualMemorySize,FreeVirtualMemory > $TMPDIR/metrics/free.txt 2>&1

0 commit comments

Comments
 (0)