-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to specify -prometheus-http-prefix for mimirtool analyze promet…
…heus (#4966) When configuring mimirtool via environment variables users might use the following: ``` MIMIR_ADDRESS=https://mimir:9090 MIMIR_TENANT_ID=default MIMIR_API_USER=default MIMIR_API_KEY=1234 ``` It works as expected for `mimirtool analyze ruler` but not for `mimirtool analyze prometheus`. The HTTP client for `analyze ruler` is done with `github.com/grafana/mimir/pkg/mimirtool/client`, when for `analyze prometheus` it is done with only the address. Depending on which prometheus the user wants to analyze the path is not the same. For a mimir based analysis user needs to provide `/prometheus`. This commit allow to specify the path to use for a mimir based analysis. It also simplify the scripting around the tool. Example: ``` source .secrets.env mimirtool analyze grafana && \ mimirtool analyze ruler && \ mimirtool analyze prometheus --prometheus-http-prefix="/prometheus" ``` Signed-off-by: Wilfried Roset <wilfriedroset@users.noreply.github.com>
- Loading branch information
1 parent
c9bdfe3
commit ee8a8e2
Showing
4 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters