Skip to content

Commit

Permalink
chore: update docs about the cli flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Juraj Michalek committed Dec 9, 2023
1 parent 0d2e0e5 commit a2f4319
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/sources/mimir/manage/tools/mimirtool.md
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,9 @@ mimirtool analyze prometheus --address=<url> --id=<tenant_id>
##### Configuration

| Environment variable | Flag | Description |
| -------------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| -------------------- | -------------------------- |--------------------------------------------------------------------------------------------------------------------------|
| `MIMIR_ADDRESS` | `--address` | Sets the address of the Prometheus instance. |
| `MIMIR_TENANT_ID` | `--id` | Sets the basic auth username. If you're using Grafana Cloud this variable is your instance ID. |
| `MIMIR_TENANT_ID` | `--id` | Sets the basic auth username. If you're using Grafana Cloud this variable is your instance ID, also set as tenant ID. |
| `MIMIR_API_KEY` | `--key` | Sets the basic auth password. If you're using Grafana Cloud, this variable is your API key. |
| - | `--grafana-metrics-file` | `mimirtool analyze grafana` or `mimirtool analyze dashboard` output file, which by default is `metrics-in-grafana.json`. |
| - | `--ruler-metrics-file` | `mimirtool analyze ruler` or `mimirtool analyze rule-file` output file, which by default is `metrics-in-ruler.json`. |
Expand Down
2 changes: 1 addition & 1 deletion pkg/mimirtool/commands/analyse.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (cmd *AnalyzeCommand) Register(app *kingpin.Application, envVars EnvVarName
prometheusAnalyzeCmd.Flag("prometheus-http-prefix", "HTTP URL path under which the Prometheus api will be served.").
Default("").
StringVar(&paCmd.prometheusHTTPPrefix)
prometheusAnalyzeCmd.Flag("id", "Basic auth username to use when contacting Prometheus or Grafana Mimir; alternatively, set "+envVars.TenantID+".").
prometheusAnalyzeCmd.Flag("id", "Basic auth username to use when contacting Prometheus or Grafana Mimir, also set as tenant ID; alternatively, set "+envVars.TenantID+".").
Envar(envVars.TenantID).
Default("").
StringVar(&paCmd.username)
Expand Down

0 comments on commit a2f4319

Please sign in to comment.