-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix_metrics_sourcetype_annotation
- Loading branch information
Showing
425 changed files
with
37,443 additions
and
14,155 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
.chloggen/addfsyncflagconfig.yaml → ...ot-scrape-fs-metrics-from-snap-mount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
change_type: bug_fix | ||
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other) | ||
component: agent | ||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Added `fsyncFlag` configuration to allow users to enable fsync on the filestorage. | ||
note: Scrape FS metrics from one host disk mounted to the root to avoid scraping errors since the collector likely doesn't have access to other mounts. | ||
# One or more tracking issues related to the change | ||
issues: [1425] | ||
issues: [1569] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
.chloggen/ingest_cluster_receiver_events_into_index_from_annotation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: 'enhancement' | ||
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other) | ||
component: clusterReceiver | ||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Configure k8s attributes processor for cluster receiver to ingest events into index defined in namespace annotation | ||
# One or more tracking issues related to the change | ||
issues: [1481] | ||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ggen/operator-instrumentation-update.yaml → .chloggen/update-dotnet.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: breaking | ||
change_type: enhancement | ||
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other) | ||
component: operator | ||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Operator Helm values previously under `.Values.operator.instrumentation.spec.*` have been moved to `.Values.instrumentation.*` | ||
note: Bump dotnet to v1.8.0 in helm-charts/splunk-otel-collector/values.yaml | ||
# One or more tracking issues related to the change | ||
issues: [1436] | ||
issues: [1538] | ||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: If you use custom values under `.Values.operator.instrumentation.spec.*` please review the [upgrade guidelines](https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md#01055-01080) | ||
subtext: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other) | ||
component: operator | ||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Bump java to v2.10.0 in helm-charts/splunk-otel-collector/values.yaml | ||
# One or more tracking issues related to the change | ||
issues: [1551] | ||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other) | ||
component: operator | ||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Bump nodejs to v2.15.0 in helm-charts/splunk-otel-collector/values.yaml | ||
# One or more tracking issues related to the change | ||
issues: [1558] | ||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other) | ||
component: agent, clusterReceiver, gateway | ||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Update config for scraping internal metrics to use new config interface and loopback address. | ||
# One or more tracking issues related to the change | ||
issues: [1573] | ||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: "This also drops redundant attributes reported with the internal metrics: `net.host.name` and `server.address`" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,12 @@ on: | |
branches: [ main ] | ||
workflow_dispatch: | ||
inputs: | ||
UPDATE_EXPECTED_RESULTS: | ||
description: 'Set this to true to update expected results and collect updated test output as a Github workflow artifact.' | ||
UPLOAD_UPDATED_EXPECTED_RESULTS: | ||
description: 'Set this to true to upload updated golden file expected results and upload these results as a Github workflow artifact.' | ||
required: false | ||
default: false | ||
UPLOAD_KUBERNETES_DEBUG_INFO: | ||
description: 'Set this to true to collect the debug info of the k8s cluster and upload this info as a Github workflow artifact.' | ||
required: false | ||
default: false | ||
|
||
|
@@ -20,6 +24,8 @@ jobs: | |
env: | ||
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing | ||
KUBE_TEST_ENV: kind | ||
UPLOAD_UPDATED_EXPECTED_RESULTS: ${{ github.event.inputs.UPLOAD_UPDATED_EXPECTED_RESULTS || 'false' }} | ||
UPLOAD_KUBERNETES_DEBUG_INFO: ${{ github.event.inputs.UPLOAD_KUBERNETES_DEBUG_INFO || 'false' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -36,6 +42,7 @@ jobs: | |
test-job: | ||
- functional | ||
- histogram | ||
- configuration_switching | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -53,7 +60,7 @@ jobs: | |
~/go/pkg/mod | ||
key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} | ||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.10.0 | ||
uses: helm/kind-action@v1.11.0 | ||
with: | ||
node_image: kindest/node:${{ matrix.k8s-version }} | ||
kubectl_version: ${{ matrix.k8s-version }} | ||
|
@@ -69,14 +76,28 @@ jobs: | |
run: | | ||
make cert-manager | ||
- name: run functional tests | ||
id: run-functional-tests | ||
env: | ||
K8S_VERSION: ${{ matrix.k8s-version }} | ||
UPDATE_EXPECTED_RESULTS: ${{ github.event.inputs.UPDATE_EXPECTED_RESULTS || 'false' }} | ||
run: | | ||
cd functional_tests | ||
TEARDOWN_BEFORE_SETUP=true UPDATE_EXPECTED_RESULTS=${{ env.UPDATE_EXPECTED_RESULTS }} go test -v -tags ${{ matrix.test-job }} | ||
- name: 'Upload test results' | ||
if: failure() && env.UPDATE_EXPECTED_RESULTS == 'true' | ||
TEARDOWN_BEFORE_SETUP=true UPDATE_EXPECTED_RESULTS=${{ env.UPLOAD_UPDATED_EXPECTED_RESULTS }} go test -v -tags ${{ matrix.test-job }} | ||
- name: Collect Kubernetes Cluster debug info on failure | ||
if: always() && (steps.run-functional-tests.outcome == 'failure' || env.UPLOAD_KUBERNETES_DEBUG_INFO == 'true') | ||
id: collect-debug-info | ||
run: | | ||
echo "Functional tests failed. Collecting debug info for current state of the Kubernetes cluster..." | ||
cd tools | ||
./splunk_kubernetes_debug_info.sh | ||
- name: Upload Kubernetes Cluster debug info | ||
if: always() && (steps.run-functional-tests.outcome == 'failure' || env.UPLOAD_KUBERNETES_DEBUG_INFO == 'true') | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: k8s-debug-info-${{ matrix.test-job }}-${{ matrix.k8s-version }} | ||
path: tools/splunk_kubernetes_debug_info_* | ||
retention-days: 5 | ||
- name: Upload test results | ||
if: always() && env.UPLOAD_UPDATED_EXPECTED_RESULTS == 'true' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: functional_tests-${{ matrix.test-job }}-${{ matrix.k8s-version }} | ||
|
@@ -228,14 +249,14 @@ jobs: | |
~/go/bin | ||
~/go/pkg/mod | ||
key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} | ||
- uses: 'google-github-actions/[email protected].5' | ||
- uses: 'google-github-actions/[email protected].7' | ||
with: | ||
project_id: ${{ secrets.GKE_PROJECT }} | ||
credentials_json: ${{ secrets.GKE_SA_KEY }} | ||
- uses: google-github-actions/[email protected].1 | ||
- uses: google-github-actions/[email protected].2 | ||
with: | ||
project_id: ${{ secrets.GKE_PROJECT }} | ||
- uses: google-github-actions/get-gke-credentials@v2.2.1 | ||
- uses: google-github-actions/get-gke-credentials@v2.3.0 | ||
with: | ||
cluster_name: ${{ secrets.GKE_AUTOPILOT_CLUSTER }} | ||
location: ${{ secrets.GKE_REGION }} | ||
|
@@ -291,14 +312,14 @@ jobs: | |
~/go/bin | ||
~/go/pkg/mod | ||
key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} | ||
- uses: 'google-github-actions/[email protected].5' | ||
- uses: 'google-github-actions/[email protected].7' | ||
with: | ||
project_id: ${{ secrets.GKE_PROJECT }} | ||
credentials_json: ${{ secrets.GKE_SA_KEY }} | ||
- uses: google-github-actions/[email protected].1 | ||
- uses: google-github-actions/[email protected].2 | ||
with: | ||
project_id: ${{ secrets.GKE_PROJECT }} | ||
- uses: google-github-actions/get-gke-credentials@v2.2.1 | ||
- uses: google-github-actions/get-gke-credentials@v2.3.0 | ||
with: | ||
cluster_name: ${{ secrets.GKE_AUTOPILOT_CLUSTER }} | ||
location: ${{ secrets.GKE_REGION }} | ||
|
@@ -347,7 +368,7 @@ jobs: | |
uses: azure/[email protected] | ||
with: | ||
kubelogin-version: "v0.0.24" | ||
- uses: azure/login@v2.1.1 | ||
- uses: azure/login@v2.2.0 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
- uses: azure/aks-set-context@v4 | ||
|
@@ -365,3 +386,43 @@ jobs: | |
run: | | ||
cd functional_tests | ||
TEARDOWN_BEFORE_SETUP=true go test -v -tags functional | ||
gce-autopilot-test: | ||
name: Test helm install in GCE (kops) - credentials needed | ||
needs: kubernetes-test | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
concurrency: | ||
group: gce-access | ||
env: | ||
KUBE_TEST_ENV: gce | ||
SKIP_TESTS: "true" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ~1.21.8 | ||
cache: false | ||
- name: Cache Go | ||
id: go-cache | ||
timeout-minutes: 5 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/go/bin | ||
~/go/pkg/mod | ||
key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} | ||
- name: Update dependencies | ||
run: | | ||
make dep-update | ||
- name: Set kubeconfig | ||
run: echo "$GCE_KUBECONFIG" > /tmp/kubeconfig | ||
env: | ||
GCE_KUBECONFIG: ${{ secrets.GCE_KUBECONFIG }} | ||
- name: run functional tests | ||
env: | ||
HOST_ENDPOINT: 0.0.0.0 | ||
KUBECONFIG: /tmp/kubeconfig | ||
run: | | ||
cd functional_tests | ||
TEARDOWN_BEFORE_SETUP=true go test -v -tags functional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.idea | ||
*.iml | ||
.DS_Store | ||
*splunk_kubernetes_debug_info_* | ||
|
||
# Helm | ||
**/charts/*.tgz | ||
|
Oops, something went wrong.