Skip to content

Commit facca73

Browse files
committed
Fix agent config
1 parent 2e018fb commit facca73

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/config/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ type (
231231
}
232232

233233
ContainerMetricsReceiver struct {
234-
CollectionInterval time.Duration `yaml:"-" mapstructure:"collection_interval"`
234+
CollectionInterval time.Duration `yaml:"collection_interval" mapstructure:"collection_interval"`
235235
}
236236

237237
HostMetrics struct {

test/mock/collector/nginx-agent.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ 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
39+
collection_interval: 1m0s
3940
host_metrics:
4041
collection_interval: 1m0s
4142
initial_delay: 1s
@@ -49,9 +50,8 @@ collector:
4950
- server:
5051
host: "127.0.0.1"
5152
port: 4317
52-
type: 0
5353
auth:
54-
Token: secret-receiver-token
54+
token: secret-receiver-token
5555
tls:
5656
server_name: test-local-server
5757
ca: /tmp/ca.pem

0 commit comments

Comments
 (0)