You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds bearer token support for mimirtool's analyze ruler/prometheus co… (#9587)
* Adds bearer token support for mimirtool's analyze ruler/prometheus commands
* Update with suggested verbiage
* Group changelog update with other enhancements
* Run 'make docs' for formatting
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@
27
27
*[FEATURE] Alertmanager: limit added for maximum size of the Grafana state (`-alertmanager.max-grafana-state-size-bytes`). #9475
28
28
*[FEATURE] Alertmanager: limit added for maximum size of the Grafana configuration (`-alertmanager.max-config-size-bytes`). #9402
29
29
*[FEATURE] Ingester: Experimental support for ingesting out-of-order native histograms. This is disabled by default and can be enabled by setting `-ingester.ooo-native-histograms-ingestion-enabled` to `true`. #7175
30
+
*[ENHANCEMENT] mimirtool: Adds bearer token support for mimirtool's analyze ruler/prometheus commands. #9587
30
31
*[ENHANCEMENT] Ruler: Support `exclude_alerts` parameter in `<prometheus-http-prefix>/api/v1/rules` endpoint. #9300
31
32
*[ENHANCEMENT] Distributor: add a metric to track tenants who are sending newlines in their label values called `cortex_distributor_label_values_with_newlines_total`. #9400
32
33
*[ENHANCEMENT] Ingester: improve performance of reading the WAL. #9508
| `MIMIR_ADDRESS` | `--address` | Sets the address of the Prometheus instance. |
815
-
| `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. |
816
-
| `MIMIR_API_KEY` | `--key` | Sets the basic auth password. If you're using Grafana Cloud, this variable is your API key. |
817
-
| - | `--grafana-metrics-file` | `mimirtool analyze grafana` or `mimirtool analyze dashboard` output file, which by default is `metrics-in-grafana.json`. |
818
-
| - | `--ruler-metrics-file` | `mimirtool analyze ruler` or `mimirtool analyze rule-file` output file, which by default is `metrics-in-ruler.json`. |
819
-
| - | `--output` | Sets the output file path, which by default is `prometheus-metrics.json`. |
820
-
| - | `--prometheus-http-prefix` | Sets the HTTP URL path under which the Prometheus api will be served. |
| `MIMIR_ADDRESS` | `--address` | Sets the address of the Prometheus instance. |
816
+
| `MIMIR_TENANT_ID` | `--id` | Sets the basic authentication username. If you're using Grafana Cloud this variable is your instance ID, also set as tenant ID. |
817
+
| `MIMIR_API_KEY` | `--key` | Sets the basic authentication password. If you're using Grafana Cloud, this variable is your API key. |
818
+
| `MIMIR_AUTH_TOKEN` | `--auth-token` | Sets the bearer or JWT token that is required for Mimir clusters authenticating with this method. |
819
+
| - | `--grafana-metrics-file` | `mimirtool analyze grafana` or `mimirtool analyze dashboard` output file, which by default is `metrics-in-grafana.json`. |
820
+
| - | `--ruler-metrics-file` | `mimirtool analyze ruler` or `mimirtool analyze rule-file` output file, which by default is `metrics-in-ruler.json`. |
821
+
| - | `--output` | Sets the output file path, which by default is `prometheus-metrics.json`. |
822
+
| - | `--prometheus-http-prefix` | Sets the HTTP URL path under which the Prometheus api will be served. |
prometheusAnalyzeCmd.Flag("prometheus-http-prefix", "HTTP URL path under which the Prometheus api will be served.").
27
27
Default("").
28
28
StringVar(&paCmd.prometheusHTTPPrefix)
29
+
prometheusAnalyzeCmd.Flag("auth-token", "Authentication token bearer authentication; alternatively, set "+envVars.AuthToken+".").
30
+
Default("").
31
+
Envar(envVars.AuthToken).
32
+
StringVar(&paCmd.authToken)
29
33
prometheusAnalyzeCmd.Flag("id", "Basic auth username to use when contacting Prometheus or Grafana Mimir, also set as tenant ID; alternatively, set "+envVars.TenantID+".").
0 commit comments