diff --git a/.changelog/3915.added.txt b/.changelog/3915.added.txt new file mode 100644 index 0000000000..43350f6423 --- /dev/null +++ b/.changelog/3915.added.txt @@ -0,0 +1 @@ +feat(k8s_tagger): Add Pod ID as metadata \ No newline at end of file diff --git a/deploy/helm/sumologic/conf/logs/otelcol/config.yaml b/deploy/helm/sumologic/conf/logs/otelcol/config.yaml index 46b83864c1..0527e11c8a 100644 --- a/deploy/helm/sumologic/conf/logs/otelcol/config.yaml +++ b/deploy/helm/sumologic/conf/logs/otelcol/config.yaml @@ -304,6 +304,7 @@ processors: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/debug.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/debug.output.yaml index 28a8b7ce30..0d28d7a529 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/debug.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/debug.output.yaml @@ -170,6 +170,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/debug_with_sumologic_mock.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/debug_with_sumologic_mock.output.yaml index 43e1c4f9d6..48b2952ca7 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/debug_with_sumologic_mock.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/debug_with_sumologic_mock.output.yaml @@ -179,6 +179,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/debug_with_sumologic_mock_http.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/debug_with_sumologic_mock_http.output.yaml index a0d3e665a3..d3cc8776e3 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/debug_with_sumologic_mock_http.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/debug_with_sumologic_mock_http.output.yaml @@ -193,6 +193,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/extra_exporter.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/extra_exporter.output.yaml index 04eb527381..7e2e990615 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/extra_exporter.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/extra_exporter.output.yaml @@ -172,6 +172,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/otel.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/otel.output.yaml index 5c1834b24e..b7565e67ae 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/otel.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/otel.output.yaml @@ -168,6 +168,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/routing.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/routing.output.yaml index a56f097085..ee1a5f2596 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/routing.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/routing.output.yaml @@ -172,6 +172,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/routing_with_defaults.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/routing_with_defaults.output.yaml index c24799c521..42fcfb2b9a 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/routing_with_defaults.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/routing_with_defaults.output.yaml @@ -172,6 +172,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/routing_with_defaults_http.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/routing_with_defaults_http.output.yaml index bb0f2f1259..0fbe88cd0f 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/routing_with_defaults_http.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/routing_with_defaults_http.output.yaml @@ -179,6 +179,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName diff --git a/tests/helm/testdata/goldenfile/metadata_logs_otc/templates.output.yaml b/tests/helm/testdata/goldenfile/metadata_logs_otc/templates.output.yaml index e8dedfdb72..31cc0bd2ea 100644 --- a/tests/helm/testdata/goldenfile/metadata_logs_otc/templates.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_logs_otc/templates.output.yaml @@ -168,6 +168,7 @@ data: - hostName - namespace - nodeName + - podId - podName - serviceName - statefulSetName