Skip to content

Commit 7a950a0

Browse files
committed
fixed mock collector
1 parent 0ac5e2a commit 7a950a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/config/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ type (
233233
}
234234

235235
ContainerMetricsReceiver struct {
236-
CollectionInterval time.Duration `yaml:"-" mapstructure:"collection_interval"`
236+
CollectionInterval time.Duration `yaml:"collection_interval" mapstructure:"collection_interval"`
237237
}
238238

239239
HostMetrics struct {

test/mock/collector/nginx-agent.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ allowed_directories:
2828
- /var/run/nginx
2929

3030
client:
31-
timeout: 10s
31+
http:
32+
timeout: 10s
3233

3334
collector:
3435
log:
3536
level: DEBUG
3637
receivers:
3738
container_metrics:
38-
collection_interval: 10s
3939
host_metrics:
4040
collection_interval: 1m0s
4141
initial_delay: 1s
@@ -50,7 +50,7 @@ collector:
5050
host: "127.0.0.1"
5151
port: 4317
5252
auth:
53-
Token: secret-receiver-token
53+
token: secret-receiver-token
5454
tls:
5555
server_name: test-local-server
5656
ca: /tmp/ca.pem

0 commit comments

Comments
 (0)