Skip to content

Commit

Permalink
Merge pull request #1 from cortexproject/PR19
Browse files Browse the repository at this point in the history
Include flags for ruler command
  • Loading branch information
janwillies authored Nov 1, 2023
2 parents 33c3017 + ebd3269 commit 7284f4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/commands/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ func (r *RuleCommand) Register(app *kingpin.Application) {
Envar("CORTEX_USE_LEGACY_ROUTES").
BoolVar(&r.ClientConfig.UseLegacyRoutes)

c.Flag("ruler-api-path", "if set, API requests to cortex will use an alternative path for the ruler API, alternatively set CORTEX_RULER_API_PATH. The default is /api/v1/rules").
Default("").
Envar("CORTEX_RULER_API_PATH").
StringVar(&r.ClientConfig.RulerAPIPath)

c.Flag("tls-ca-path", "TLS CA certificate to verify cortex API as part of mTLS, alternatively set CORTEX_TLS_CA_PATH.").
Default("").
Envar("CORTEX_TLS_CA_CERT").
Expand Down

0 comments on commit 7284f4f

Please sign in to comment.