Skip to content

Commit 0882ce0

Browse files
authored
Merge branch 'main' into emiliaFer/addFips
2 parents a3866c9 + c77ca84 commit 0882ce0

File tree

22 files changed

+108
-45
lines changed

22 files changed

+108
-45
lines changed

.github/workflows/ci-base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
REGISTRY: "${{ secrets.registry }}"
127127
with:
128128
distribution: goreleaser
129-
version: '~> v2'
129+
version: '2.11.2'
130130
args: ${{ env.goreleaser_args }}
131131
workdir: distributions/${{ inputs.distribution }}
132132

.github/workflows/ci-nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
REGISTRY: ${{ env.REGISTRY }}
120120
with:
121121
distribution: goreleaser
122-
version: '~> v2'
122+
version: '2.11.2'
123123
args: --skip=announce,validate --clean --timeout 2h --config .goreleaser-nightly.yaml
124124
workdir: distributions/${{ matrix.distribution }}
125125
- name: Extract Docker Manifest SHA

.github/workflows/release-draft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: goreleaser/goreleaser-action@v6
2828
with:
2929
distribution: goreleaser
30-
version: '~> v2'
30+
version: '2.11.2'
3131
args: --clean --timeout 2h
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -111,6 +111,6 @@ jobs:
111111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112112
with:
113113
distribution: goreleaser
114-
version: '~> v2'
114+
version: '2.11.2'
115115
args: --clean --skip=announce --timeout 2h
116116
workdir: distributions/${{ matrix.distribution }}

cmd/nrdot-collector-builder/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818

1919
require (
2020
github.com/fsnotify/fsnotify v1.9.0 // indirect
21-
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
21+
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
2222
github.com/inconshreveable/mousetrap v1.1.0 // indirect
2323
github.com/knadh/koanf/maps v0.1.2 // indirect
2424
github.com/knadh/koanf/providers/file v1.2.0

cmd/nrdot-collector-builder/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
44
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
55
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
66
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
7-
github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk=
8-
github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
7+
github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=
8+
github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
99
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
1010
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
1111
github.com/knadh/koanf/maps v0.1.2 h1:RBfmAW5CnZT+PJ1CVc1QSJKf4Xu9kxfQgYVQSu8hpbo=

distributions/nrdot-collector-host/config.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,7 @@ processors:
180180
resourcedetection/cloud:
181181
detectors: ["gcp", "ec2", "azure"]
182182
timeout: 2s
183-
ec2:
184-
resource_attributes:
185-
host.name:
186-
enabled: false
183+
override: true
187184

188185
# Gives OTEL_RESOURCE_ATTRIBUTES precedence over other sources.
189186
# host.id is set from env whenever the collector is orchestrated by NR Agents.

distributions/nrdot-collector-host/test/spec-local.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,19 @@ scenarios:
190190
- source: "internal-expected-metrics.yaml"
191191
# Tests for existence of signal + specific attributes
192192
nrqls:
193+
# Resource attributes (any signal would work)
194+
- query: FROM Log SELECT filter(count(*), service.name is not null) as logs_service_name
195+
expected_results:
196+
- key: logs_service_name
197+
lowerBoundedValue: 1
198+
- query: FROM Log SELECT filter(count(*), newrelic.collector_telemetry.version is not null) as logs_telemetry_version
199+
expected_results:
200+
- key: logs_telemetry_version
201+
lowerBoundedValue: 1
202+
- query: FROM Log SELECT filter(count(*), newrelic.service.type='otel_collector') as logs_service_type
203+
expected_results:
204+
- key: logs_service_type
205+
lowerBoundedValue: 1
193206
# Logs
194207
- query: FROM Log SELECT count(*) as logs_all
195208
expected_results:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
nightly:
22
collectorChart:
33
name: nr_backend
4-
version: 0.1.0
54
ec2:
65
enabled: true
76
testCaseSpecs:
8-
- host
7+
- host
8+
- resourcedetection

distributions/nrdot-collector/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ processors:
184184
resource_attributes:
185185
host.name:
186186
enabled: false
187+
override: true
187188

188189
# Gives OTEL_RESOURCE_ATTRIBUTES precedence over other sources.
189190
# host.id is set from env whenever the collector is orchestrated by NR Agents.

distributions/nrdot-collector/test/spec-local.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,19 @@ scenarios:
190190
- source: "internal-expected-metrics.yaml"
191191
# Tests for existence of signal + specific attributes
192192
nrqls:
193+
# Resource attributes (any signal would work)
194+
- query: FROM Log SELECT filter(count(*), service.name is not null) as logs_service_name
195+
expected_results:
196+
- key: logs_service_name
197+
lowerBoundedValue: 1
198+
- query: FROM Log SELECT filter(count(*), newrelic.collector_telemetry.version is not null) as logs_telemetry_version
199+
expected_results:
200+
- key: logs_telemetry_version
201+
lowerBoundedValue: 1
202+
- query: FROM Log SELECT filter(count(*), newrelic.service.type='otel_collector') as logs_service_type
203+
expected_results:
204+
- key: logs_service_type
205+
lowerBoundedValue: 1
193206
# Logs
194207
- query: FROM Log SELECT count(*) as logs_all
195208
expected_results:

0 commit comments

Comments
 (0)