Skip to content

Commit

Permalink
Remove overrides exporter
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Le <[email protected]>
  • Loading branch information
CharlieTLe committed May 8, 2024
1 parent 900acbc commit d08ff0e
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 1,796 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,6 @@ promtool tsdb dump ./local-tsdb
prometheus --storage.tsdb.path ./local-tsdb --config.file=<(echo "")
```

#### Overrides Exporter

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]).

cortextool overrides-exporter --overrides-file overrides.yaml --presets-file presets.yaml

[override config file]:./pkg/commands/testdata/overrides.yaml
[presets file]:./pkg/commands/testdata/presets.yaml
[runtime-config]:https://cortexmetrics.io/docs/configuration/arguments/#runtime-configuration-file

#### Generate ACL Headers

This lets you generate the header which can then be used to enforce access control rules in GME / GrafanaCloud.
Expand Down
22 changes: 10 additions & 12 deletions cmd/cortextool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ import (
)

var (
ruleCommand commands.RuleCommand
alertCommand commands.AlertCommand
alertmanagerCommand commands.AlertmanagerCommand
logConfig commands.LoggerConfig
pushGateway commands.PushGatewayConfig
loadgenCommand commands.LoadgenCommand
remoteReadCommand commands.RemoteReadCommand
aclCommand commands.AccessControlCommand
analyseCommand commands.AnalyseCommand
bucketValidateCommand commands.BucketValidationCommand
overridesExporterCommand = commands.NewOverridesExporterCommand()
ruleCommand commands.RuleCommand
alertCommand commands.AlertCommand
alertmanagerCommand commands.AlertmanagerCommand
logConfig commands.LoggerConfig
pushGateway commands.PushGatewayConfig
loadgenCommand commands.LoadgenCommand
remoteReadCommand commands.RemoteReadCommand
aclCommand commands.AccessControlCommand
analyseCommand commands.AnalyseCommand
bucketValidateCommand commands.BucketValidationCommand
)

func main() {
Expand All @@ -33,7 +32,6 @@ func main() {
pushGateway.Register(app)
loadgenCommand.Register(app)
remoteReadCommand.Register(app)
overridesExporterCommand.Register(app)
aclCommand.Register(app)
analyseCommand.Register(app)
bucketValidateCommand.Register(app)
Expand Down
243 changes: 0 additions & 243 deletions pkg/commands/overrides_exporter.go

This file was deleted.

Loading

0 comments on commit d08ff0e

Please sign in to comment.