-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds bearer token support for mimirtool's analyze ruler/prometheus co… #9587
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
| 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. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `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 authentication username. If you're using Grafana Cloud, this variable is your instance ID. | |
| -------------------- | --------------- | --------------------------------------------------------------------------------------------------- | | ||
| `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_API_KEY` | `--key` | Sets the basic auth password. If you're using Grafana Cloud, this variable is your API key. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `MIMIR_API_KEY` | `--key` | Sets the basic auth password. If you're using Grafana Cloud, this variable is your API key. | | |
| `MIMIR_API_KEY` | `--key` | Sets the basic authentication password. If you're using Grafana Cloud, this variable is your API key. | |
| `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_API_KEY` | `--key` | Sets the basic auth password. If you're using Grafana Cloud, this variable is your API key. | | ||
| `MIMIR_AUTH_TOKEN` | `--auth-token` | Sets bearer or JWT token that is required for Mimir clusters authenticating by bearer or JWT token. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `MIMIR_AUTH_TOKEN` | `--auth-token` | Sets bearer or JWT token that is required for Mimir clusters authenticating by bearer or JWT token. | | |
| `MIMIR_AUTH_TOKEN` | `--auth-token` | Sets the bearer or JWT token that is required for Mimir clusters authenticating with this method. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo @tacole02's suggestions. Thanks!
Updated verbiage based on @tacole02 suggestions - made my own commit instead of taking the suggestions just to make sure the table spacing looked right. |
…mmands
What this PR does
mimirtool has support for authenticating using
--auth-token
(since #2146) to supply a bearer token for therules
command, but theanalyze ruler
andanalyze prometheus
commands do not currently support using a bearer token. This PR adds support for that.Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.