Skip to content

Commit 4182640

Browse files
authored
Remove overrides exporter (#37)
Signed-off-by: Charlie Le <[email protected]>
1 parent 71c39ed commit 4182640

File tree

11 files changed

+10
-1796
lines changed

11 files changed

+10
-1796
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,6 @@ promtool tsdb dump ./local-tsdb
174174
prometheus --storage.tsdb.path ./local-tsdb --config.file=<(echo "")
175175
```
176176

177-
#### Overrides Exporter
178-
179-
The Overrides Exporter allows to continuously export [per tenant configuration overrides][runtime-config] as metrics. It can also, optionally, export a presets file (cf. example [override config file] and [presets file]).
180-
181-
cortextool overrides-exporter --overrides-file overrides.yaml --presets-file presets.yaml
182-
183-
[override config file]:./pkg/commands/testdata/overrides.yaml
184-
[presets file]:./pkg/commands/testdata/presets.yaml
185-
[runtime-config]:https://cortexmetrics.io/docs/configuration/arguments/#runtime-configuration-file
186-
187177
#### Generate ACL Headers
188178

189179
This lets you generate the header which can then be used to enforce access control rules in GME / GrafanaCloud.

cmd/cortextool/main.go

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ import (
1111
)
1212

1313
var (
14-
ruleCommand commands.RuleCommand
15-
alertCommand commands.AlertCommand
16-
alertmanagerCommand commands.AlertmanagerCommand
17-
logConfig commands.LoggerConfig
18-
pushGateway commands.PushGatewayConfig
19-
loadgenCommand commands.LoadgenCommand
20-
remoteReadCommand commands.RemoteReadCommand
21-
aclCommand commands.AccessControlCommand
22-
analyseCommand commands.AnalyseCommand
23-
bucketValidateCommand commands.BucketValidationCommand
24-
overridesExporterCommand = commands.NewOverridesExporterCommand()
14+
ruleCommand commands.RuleCommand
15+
alertCommand commands.AlertCommand
16+
alertmanagerCommand commands.AlertmanagerCommand
17+
logConfig commands.LoggerConfig
18+
pushGateway commands.PushGatewayConfig
19+
loadgenCommand commands.LoadgenCommand
20+
remoteReadCommand commands.RemoteReadCommand
21+
aclCommand commands.AccessControlCommand
22+
analyseCommand commands.AnalyseCommand
23+
bucketValidateCommand commands.BucketValidationCommand
2524
)
2625

2726
func main() {
@@ -33,7 +32,6 @@ func main() {
3332
pushGateway.Register(app)
3433
loadgenCommand.Register(app)
3534
remoteReadCommand.Register(app)
36-
overridesExporterCommand.Register(app)
3735
aclCommand.Register(app)
3836
analyseCommand.Register(app)
3937
bucketValidateCommand.Register(app)

pkg/commands/overrides_exporter.go

Lines changed: 0 additions & 243 deletions
This file was deleted.

0 commit comments

Comments
 (0)