Skip to content

Commit

Permalink
Remove deprecated warning (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson authored Feb 5, 2024
1 parent ae05095 commit 9c58b75
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix how we enable `remote-write-receiver` to avoid deprecated warnings.

### Removed

- Free retention duration property of it's 2 weeks limitation if the free storage allows it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func toPrometheus(ctx context.Context, v interface{}, config Config) (metav1.Obj
},
},
},
EnableFeatures: []string{"remote-write-receiver"},
EnableRemoteWriteReceiver: true,
ExternalLabels: map[string]string{
key.ClusterIDKey: key.ClusterID(cluster),
key.ClusterTypeKey: key.ClusterType(config.Installation, cluster),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ spec:
cert: {}
insecureSkipVerify: true
arbitraryFSAccessThroughSMs: {}
enableFeatures:
- remote-write-receiver
enableRemoteWriteReceiver: true
evaluationInterval: 60s
externalLabels:
cluster_id: kubernetes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ spec:
caFile: /etc/prometheus/secrets/cluster-certificates/ca
cert: {}
arbitraryFSAccessThroughSMs: {}
enableFeatures:
- remote-write-receiver
enableRemoteWriteReceiver: true
evaluationInterval: 60s
externalLabels:
cluster_id: alice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ spec:
caFile: /etc/prometheus/secrets/cluster-certificates/ca
cert: {}
arbitraryFSAccessThroughSMs: {}
enableFeatures:
- remote-write-receiver
enableRemoteWriteReceiver: true
evaluationInterval: 60s
externalLabels:
cluster_id: baz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ spec:
caFile: /etc/prometheus/secrets/cluster-certificates/ca
cert: {}
arbitraryFSAccessThroughSMs: {}
enableFeatures:
- remote-write-receiver
enableRemoteWriteReceiver: true
evaluationInterval: 60s
externalLabels:
cluster_id: foo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ spec:
caFile: /etc/prometheus/secrets/cluster-certificates/ca
cert: {}
arbitraryFSAccessThroughSMs: {}
enableFeatures:
- remote-write-receiver
enableRemoteWriteReceiver: true
evaluationInterval: 60s
externalLabels:
cluster_id: eks-sample
Expand Down

0 comments on commit 9c58b75

Please sign in to comment.